BIS fnc keyCode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(pf)
Line 1: Line 1:
{{Function|Comments=
____________________________________________________________________________________________
| arma3 |Game name=


{{Function|= Comments
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| Returns DIK code of a given key.|Description=
 
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| input call [[BIS_fnc_keyCode]] |Syntax=


Description:
Returns DIK code of a given key


Parameter(s):
|p1= input:<br>
_this:
[[Number]]: Key code<br>
STRING - key name
[[String]]: Key name<br>
NUMBER - key code
[[Boolean]]: Return key definitions |Parameter 1=
BOOL - return array of key definitions


Returns:
___________________________________________________________________________________________
STRING - key name
NUMBER - key code
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code>|Example 1=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_keyCode]]; --> |= Syntax
|x2= <code>"EQUALS" call [[BIS_fnc_keyCode]];//Returns 13</code>|Example 2=


|p1= |= Parameter 1
|x3= <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...]</code>|Example 3=


| |= Return value
|[[String]], [[Number]] or [[Array]] |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[DIK KeyCodes]] |See also=
}}


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 15:23, 5 July 2018

Hover & click on the images for description

Description

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

Syntax

Syntax:
input call BIS_fnc_keyCode
Parameters:
input:
Number: Key code
String: Key name
Boolean: Return key definitions
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


Notes

Bottom Section