Arma 3 Scripting

Function in GUI

BIS_fnc_keyCode

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns DIK code of a given key.

Syntax

input call BIS_fnc_keyCode

Parameters:

Returns: 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...]

See also

DIK KeyCodes