keyName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(17 intermediate revisions by 10 users not shown)
Line 2: Line 2:
[[Category:Scripting Commands OFP Elite |KEYNAME]]
[[Category:Scripting Commands OFP Elite |KEYNAME]]
[[Category:Scripting Commands ArmA|KEYNAME]]
[[Category:Scripting Commands ArmA|KEYNAME]]
[[Category:Scripting Commands ArmA2|KEYNAME]]
[[Category:Command_Group:_System_Commands|{{uc:{{PAGENAME}}}}]]
{{Command|= Comments
____________________________________________________________________________________________


| arma |= Game name


|1.00|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">''''' keyName ''dikCode'''''</h2>
| Returns the name of a button (on the keyboard, mouse or joystick) with the given code. |DESCRIPTION=
____________________________________________________________________________________________


|  '''keyName''' dikCode |SYNTAX=


'''Operand types:'''
|p1= dikCode: [[Number]] |PARAMETER1=


dikCode: [[Number]]
| [[String]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_name = [[keyName]] 28; //result is "Enter"</code> |EXAMPLE1=
____________________________________________________________________________________________


'''Type of returned value:'''
| [[keyImage]], [[actionKeys]], [[actionKeysImages]], [[actionKeysNames]], [[actionKeysNamesArray]], [[DIK KeyCodes]] |SEEALSO=


[[String]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Version 2.01 required.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
Returns the name of a button (on the keyboard, mouse or joystick) with the given code.
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
'''Example:'''
 
 
name = '''keyName''' 28 , result is "Enter"

Revision as of 15:42, 7 April 2019


-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns the name of a button (on the keyboard, mouse or joystick) with the given code.
Groups:
Uncategorised

Syntax

Syntax:
keyName dikCode
Parameters:
dikCode: Number
Return Value:
String

Examples

Example 1:
_name = keyName 28; //result is "Enter"

Additional Information

See also:
keyImageactionKeysactionKeysImagesactionKeysNamesactionKeysNamesArrayDIK 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