BIS fnc keyCode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = GUI | |gr1 = GUI | ||
| Returns DIK code of a given key. | | Returns DIK code of a given key. | ||
| input call [[BIS_fnc_keyCode]] | | input call [[BIS_fnc_keyCode]] | ||
Line 15: | Line 15: | ||
[[Number]]: Key code<br> | [[Number]]: Key code<br> | ||
[[String]]: Key name<br> | [[String]]: Key name<br> | ||
[[Boolean]]: Return key definitions | [[Boolean]]: Return key definitions | ||
|x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code> | |x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code> | ||
|x2= <code>"EQUALS" call [[BIS_fnc_keyCode]];//Returns 13</code> | |x2= <code>"EQUALS" call [[BIS_fnc_keyCode]];//Returns 13</code> | ||
|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> | |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> | ||
|[[String]], [[Number]] or [[Array]] | |[[String]], [[Number]] or [[Array]] | ||
| [[DIK KeyCodes]] | | [[DIK KeyCodes]] | ||
}} | }} | ||
Revision as of 23:11, 17 January 2021
Description
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