Arma 3 Scripting

Command in System

keyImage

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns a structured text, containing an image or name (if no image is found) of the button, on the keyboard, mouse or joystick, with the given code.

Syntax

keyImage dikCode

Parameters:

Returns: Structured Text

Examples

Example 1

_image = keyImage 28; // result is "Enter"

Example 2

From Arma 3 v2.08:

_image = keyImage "-1660944350"; // result is "Right Ctrl+G"

See also

keyName · actionKeys · actionKeysImages · actionKeysNames · actionKeysNamesArray · DIK KeyCodes