inputAction

From Bohemia Interactive Community
Revision as of 17:26, 4 April 2014 by Killzone Kid (talk | contribs) (removed duplicates, formatting)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Return the state of input devices mapped to given input action (see Category:Key Actions for action names).
Groups:
Uncategorised

Syntax

Syntax:
inputAction name
Parameters:
name: String - name of the action
Return Value:
Number

Examples

Example 1:
inputAction "leanLeft" Returns 1 if the button mapped to "leanLeft" is pressed currently else 0.
Example 2:
[] spawn { waitUntil {inputAction "reloadMagazine" > 0}; hint "Reload Key Pressed"; };

Additional Information

See also:
actionKeysactionKeysImagesactionKeysNames

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

This command also returns values other than 0 and 1 (like 0.02 or 1.3). Any value greater than zero usually signals that the key or button is pressed. inputAction does not work reliably when used in RscDisplayMission's onKeyDown event handler (the same is probably true for other input related event handlers). --Worldeater 07:38, 15 October 2010 (CEST)

Some of the Arma 3 inputActions (extracted from arma3.exe):
Action, ActionContext, ActionFreeLook, Adjust, AimDown, AimHeadDown, AimHeadLeft, AimHeadRight, AimHeadRight, AimHeadUp, AimLeft, AimRight, AimUp, AirBankLeft, AirBankRight, AutoHover, AutoHoverCancel, Binocular, BuldBack, BuldBrushOuter, BuldBrushRandomize, BuldBrushRatio, BuldBrushSmooth, BuldBrushStrength, BuldCreateObj, BuldDown, BuldDuplicateSel, BuldElevateSel, BuldForward, BuldFreeLook, BuldLeft, BuldLookDown, BuldLookLeft, BuldLookRight, BuldLookUp, BuldMagnetizePlanes, BuldMagnetizePoints, BuldMagnetizeYFixed, BuldMoveBack, BuldMoveForward, BuldMoveLeft, BuldMoveRight, BuldRedo, BuldRemoveSel, BuldResetCamera, BuldRight, BuldRotateSelX, BuldRotateSelZ, BuldScaleSel, BuldSelect, BuldSelectionType, BuldSwitchCamera, BuldTerrainLower10cm, BuldTerrainLower1m, BuldTerrainLower50cm, BuldTerrainLower5m, BuldTerrainRaise10cm, BuldTerrainRaise1m, BuldTerrainRaise50cm, BuldTerrainRaise5m, BuldTerrainShowNode, BuldTextureInfo, BuldTurbo, BuldUndo, BuldUp, BuldZoomIn, BuldZoomOut, CancelAction, CarAccelerate, CarAimDown, CarAimLeft, CarAimRight, CarAimUp, CarBack, CarBrake, CarFastForward, CarForward, CarGearDwn, CarGearUp, CarHandBrake, CarLeft, CarRight, CarShiftFwd1, CarShiftFwd2, CarShiftFwd3, CarShiftFwd4, CarShiftFwd5, CarShiftFwd6, CarShiftFwd7, CarShiftFwd8, CarShiftRvs1, CarShiftRvs2, CarSlowForward, CarSoftBrake, CarWheelLeft, CarWheelRight, Chat, CommandBack, CommandFast, CommandForward, CommandLeft, CommandRight, CommandSlow, CommandWatch, Compass, CompassToggle, CopyVersion, Crouch, CycleThrownItems, DefaultAction, Diary, Eject, EvasiveLeft, EvasiveRight, Fire, FlapsDown, FlapsUp, ForceCommandingMode, FreeHeadMove, Gear, GetOut, GetOver, GunElevAuto, GunElevDown, GunElevSlow, GunElevUp, Handgun, Headlights, HeliBack, HeliBatteriesToggle, HeliBrake, HeliBrakes, HeliCollectiveLower, HeliCollectiveLowerCont, HeliCollectiveRaise, HeliCollectiveRaiseCont, HelicopterTrimOff, HelicopterTrimOn, HeliCyclicBack, HeliCyclicForward, HeliCyclicLeft, HeliCyclicRight, HeliDown, HeliEnginesToggle, HeliFastForward, HeliForward, HeliLeft, HeliManualFire, HeliRight, HeliRopeAction, HeliRotorBrakeToggle, HeliRudderLeft, HeliRudderRight, HeliThrottleNeg, HeliThrottlePos, HeliTrimBackward, HeliTrimForward, HeliTrimLeft, HeliTrimRight, HeliTrimRudderLeft, HeliTrimRudderRight, HeliUp, HeliWheelsBrake, Help, HideMap, HoldBreath, IngamePause, LandGear, LandGearUp, LaunchCM, LeanLeft, LeanLeftToggle, LeanRight, LeanRightToggle, LiteUnitInfoToggle, LockEmptyTargets, LockTarget, LockTargets, LookAround, LookAroundToggle, LookCenter, LookDown, LookDownCont, LookLeft, LookLeftCont, LookLeftDown, LookLeftUp, LookRight, LookRightCont, LookRightDown, LookRightUp, LookRollLeft, LookRollLeftCont, LookRollRight, LookRollRightCont, LookShiftBack, LookShiftBackCont, LookShiftCenter, LookShiftDown, LookShiftDownCont, LookShiftForward, LookShiftForwardCont, LookShiftLeft, LookShiftLeftCont, LookShiftRight, LookShiftRightCont, LookShiftUp, LookShiftUpCont, LookUp, LookUpCont, MenuBack, MenuSelect, MiniMap, MiniMapToggle, MoveBack, MoveDown, MoveFastForward, MoveForward, MoveLeft, MoveRight, MoveSlowForward, MoveUp, NetworkPlayers, NetworkStats, NextAction, NextChannel, NextCM, NextWeapon, NightVision, Optics, OpticsMode, OpticsTemp, PersonView, PrevAction, PrevChannel, PrevWeapon, Prone, PushToTalk, PushToTalkAll, PushToTalkCommand, PushToTalkDirect, PushToTalkGroup, PushToTalkSide, PushToTalkVehicle, Raise, ReloadMagazine, RevealTarget, Salute, SeagullBack, SeagullDown, SeagullFastForward, SeagullForward, SeagullUp, SelectAll, ShowMap, SitDown, Slow, Stand, SubmarineBack, SubmarineCyclicBack, SubmarineCyclicForward, SubmarineDown, SubmarineForward, SubmarineLeft, SubmarineRight, SubmarineUp, Surrender, SwapGunner, SwimDown, SwimUp, SwitchCommand, SwitchGunnerWeapon, SwitchWeapon, TacticalView, TactShort, TactTemp, TactToggle, TeamSwitch, TeamSwitchNext, TeamSwitchPrev, TempRaiseWeapon, Throw, TimeDec, TimeInc, ToggleRaiseWeapon, Turbo, TurboToggle, TurnIn, TurnLeft, TurnOut, TurnRight, User1, User10, User11, User12, User13, User14, User15, User16, User17, User18, User19, User2, User20, User3, User4, User5, User6, User7, User8, User9, VehicleTurbo, VehLockEmptyTargets, VehLockTargets, VoiceOverNet, Walk, WalkRunTemp, WalkRunToggle, Watch, WatchToggle, ZeroingDown, ZeroingUp, ZoomContIn, ZoomContOut, ZoomIn, ZoomInToggle, ZoomOut, ZoomOutToggle, ZoomTemp --Killzone_Kid 25 December 2013

Bottom Section