Arma 3 Scripting

keyName

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the name of a button with extra quotation marks (on the keyboard, mouse or joystick) with the given code.

Syntax

keyName dikCode

Parameters:

Returns: String

Examples

Example 1

_name = keyName 28; // result is """Enter"""

Example 2

From Arma 3 v2.08:

private _name = keyName "-1660944350"; // result is """Right Ctrl+G"""

See also

keyImage · actionKeys · actionKeysImages · actionKeysNames · actionKeysNamesArray · DIK KeyCodes

Community notes

POLPOX

The return value is different per keyboard/IME settings.