BIS fnc keyCode: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= GUI | ||
| | |descr= Returns DIK code of a given key. | ||
| | |s1= input call [[BIS_fnc_keyCode]] | ||
| input | |p1= input: | ||
* [[Number]]: Key code | |||
* [[String]]: Key name | |||
* [[Boolean]]: Return key definitions | |||
|x1= <sqf>13 call BIS_fnc_keyCode; // Returns "EQUALS"</sqf> | |||
| | |x2= <sqf>"EQUALS" call BIS_fnc_keyCode; // returns 13</sqf> | ||
|x3= <sqf>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...]</sqf> | |||
| | |r1= [[String]], [[Number]] or [[Array]] | ||
| | |seealso= [[DIK KeyCodes]] | ||
}} | }} | ||
Latest revision as of 22:44, 12 July 2022
Description
Syntax
- Syntax:
- input call BIS_fnc_keyCode
- Parameters:
- input:
- Return Value:
- String, Number or Array
Examples
- Example 1:
- Example 2:
- Example 3:
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