Arma 3 Scripting

Command in Interaction

inputController

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

Description

Returns the state of controller inputs. The controller is a standard XBOX controller which is selected with Windows XBOX controller scheme. The input can be:

Syntax

inputController input

Parameters:

Returns: Number - value of the controller input 0...1. When input is -1, return is 1 if controller is available, 0 - if controller is unavailable

Examples

Example 1

State of the fire trigger:

onEachFrame { hintSilent str inputController 13 };

See also

inputMouse · inputAction · actionKeys · actionKeysImages · actionKeysNames · actionIDs · actionParams · addAction · setUserActionText · inGameUISetEventHandler · showHUD · removeAction · removeAllActions · action