BIS fnc keyCode: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
____________________________________________________________________________________________ | |||
| arma3 |Game name= | |||
|1.00|Game version= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns DIK code of a given key.|Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | input call [[BIS_fnc_keyCode]] |Syntax= | ||
|p1= input:<br> | |||
[[Number]]: Key code<br> | |||
[[String]]: Key name<br> | |||
[[Boolean]]: Return key definitions |Parameter 1= | |||
___________________________________________________________________________________________ | |||
< | |x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code>|Example 1= | ||
| < | |x2= <code>"EQUALS" call [[BIS_fnc_keyCode]];//Returns 13</code>|Example 2= | ||
| | |x3= <code>[[true]] call [[BIS_fnc_keyCode]];//Returns ["ESCAPE",1,"1",2,"2",3,"3",4,"4",5,"5",6,"6",7,"7",8,"8",9,"9",10,"0",11,"MINUS",12,"EQUALS",13...]</code>|Example 3= | ||
| |= Return value | |[[String]], [[Number]] or [[Array]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[DIK KeyCodes]] |See also= | ||
}} | |||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> |
Revision as of 14:23, 5 July 2018
Description
- Description:
- Returns DIK code of a given key.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- input call BIS_fnc_keyCode
- Parameters:
- input:
Number: Key code
String: Key name
Boolean: Return key definitions - Return Value:
- String, Number or Array
Examples
- Example 1:
13 call BIS_fnc_keyCode;//Returns "EQUALS"
- Example 2:
"EQUALS" call BIS_fnc_keyCode;//Returns 13
- Example 3:
true call BIS_fnc_keyCode;//Returns ["ESCAPE",1,"1",2,"2",3,"3",4,"4",5,"5",6,"6",7,"7",8,"8",9,"9",10,"0",11,"MINUS",12,"EQUALS",13...]
Additional Information
- See also:
- DIK KeyCodes
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note