BIS fnc keyCode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
* [[Boolean]]: Return key definitions
* [[Boolean]]: Return key definitions


|x1= <code>13 call BIS_fnc_keyCode; {{cc|Returns "EQUALS"}}</code>
|x1= <sqf>13 call BIS_fnc_keyCode; // Returns "EQUALS"</sqf>


|x2= <code>"EQUALS" call BIS_fnc_keyCode; {{cc|returns 13}}</code>
|x2= <sqf>"EQUALS" call BIS_fnc_keyCode; // returns 13</sqf>


|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>
|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]]
|r1= [[String]], [[Number]] or [[Array]]

Latest revision as of 22:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Returns DIK code of a given key.
Execution:
call
Groups:
GUI

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