BIS fnc keyCode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= GUI | |gr1= GUI | ||
| Returns DIK code of a given key. | |descr= Returns DIK code of a given key. | ||
|s1= | |s1= input call [[BIS_fnc_keyCode]] | ||
|p1= input: | |p1= input: | ||
[[Number]]: Key code | * [[Number]]: Key code | ||
[[String]]: Key name | * [[String]]: Key name | ||
[[Boolean]]: Return key definitions | * [[Boolean]]: Return key definitions | ||
|x1= <code>13 call [[BIS_fnc_keyCode]]; | |x1= <code>13 call [[BIS_fnc_keyCode]]; {{cc|Returns "EQUALS"}}</code> | ||
|x2= <code>"EQUALS" call [[BIS_fnc_keyCode]]; | |x2= <code>"EQUALS" call [[BIS_fnc_keyCode]]; {{cc|returns 13}}</code> | ||
|x3= <code>[[true]] call [[BIS_fnc_keyCode]]; | |x3= <code>[[true]] call [[BIS_fnc_keyCode]]; {{cc|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]] | |r1= [[String]], [[Number]] or [[Array]] | ||
|seealso= [[DIK KeyCodes]] | |seealso= [[DIK KeyCodes]] | ||
}} | }} |
Revision as of 04:09, 13 June 2021
Description
Syntax
- Syntax:
- input call BIS_fnc_keyCode
- Parameters:
- input:
- 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