keyName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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]]
{{Command|= Comments
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">''' keyName ''dikCode'''''</h2>
|2.01|= Game version
____________________________________________________________________________________________


| Returns the name of a button (on the keyboard, mouse or joystick) with the given code. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''keyName''' dikCode |= Syntax


'''dikCode:''' [[Number]]
|p1= dikCode: [[Number]] |= Parameter 1


'''Type of returned value:'''
| [[String]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>name = keyName 28 .... result is "Enter"</pre> |= Example 1
____________________________________________________________________________________________


[[String]]
|  |= See also


'''Compatibility:'''
}}


Version 2.01 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns the name of a button (on the keyboard, mouse or joystick) with the given code.
<h3 style="display:none">Bottom Section</h3>
 
 
'''Example:'''
 
name = '''keyName''' 28 .... result is "Enter"

Revision as of 00:49, 2 August 2006


-wrong parameter ("Arma") defined!-2.01
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:
See also needed

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