{"name":"BIS_fnc_keyCode","operator":null,"title":"BIS fnc keyCode","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_keyCode","revid":326904,"updated":"2022-07-12T21:44:37Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns DIK code of a given key.","syntaxes":[{"syntax":"input call BIS_fnc_keyCode","since":null,"effect":null,"exec":null,"params":[{"name":"input","type":null,"optional":false,"default":null,"description":"- Number: Key code\n- String: Key name\n- Boolean: Return key definitions","types":[],"since":null,"text":"input:\n- Number: Key code\n- String: Key name\n- Boolean: Return key definitions"}],"returns":{"type":"String, Number or Array","types":["String","Number","Array"],"description":null,"text":"String, Number or Array"}}],"examples":[{"text":"```sqf\n13 call BIS_fnc_keyCode; // Returns \"EQUALS\"\n```","code":["13 call BIS_fnc_keyCode; // Returns \"EQUALS\""]},{"text":"```sqf\n\"EQUALS\" call BIS_fnc_keyCode; // returns 13\n```","code":["\"EQUALS\" call BIS_fnc_keyCode; // returns 13"]},{"text":"```sqf\ntrue 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...]\n```","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...]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["DIK KeyCodes"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}