BIS fnc keyCode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1 = GUI |GROUP1=
|gr1 = GUI |GROUP1=
____________________________________________________________________________________________


| Returns DIK code of a given key.|Description=
| Returns DIK code of a given key.|Description=
____________________________________________________________________________________________


| input call [[BIS_fnc_keyCode]] |Syntax=
| input call [[BIS_fnc_keyCode]] |Syntax=
Line 20: Line 17:
[[Boolean]]: Return key definitions |Parameter 1=
[[Boolean]]: Return key definitions |Parameter 1=


___________________________________________________________________________________________


|x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code>|Example 1=
|x1= <code>13 call [[BIS_fnc_keyCode]];//Returns "EQUALS"</code>|Example 1=
Line 30: Line 26:
|[[String]], [[Number]] or [[Array]] |Return value=
|[[String]], [[Number]] or [[Array]] |Return value=


____________________________________________________________________________________________


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

Revision as of 23:30, 16 January 2021

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:
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