inputAction: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Killzone Kid (talk | contribs) (A3 actions added) |
||
Line 35: | Line 35: | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
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). | 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). | ||
--[[User:Worldeater|Worldeater]] 07:38, 15 October 2010 (CEST) | --[[User:Worldeater|Worldeater]] 07:38, 15 October 2010 (CEST) | ||
'''Some of the Arma 3 inputActions (extracted from arma3.exe):''' | |||
''Adjust, MoveForward, MoveBack, TurnLeft, TurnRight, MoveUp, MoveDown, MoveFastForward, MoveSlowForward, MoveLeft, MoveRight, Prone, LeanLeft, LeanRight, LeanLeftToggle, LeanRightToggle, WalkRunToggle, WalkRunTemp, TactToggle, TactTemp, TactShort, NextWeapon, PrevWeapon, DefaultAction, CycleThrownItems, LockTargets, LockEmptyTargets, LockTarget, RevealTarget, ZoomTemp, TempRaiseWeapon, ToggleRaiseWeapon, PrevAction, NextAction, Action, ActionContext, ActionFreeLook, Headlights, NightVision, CompassToggle, WatchToggle, MiniMap, MiniMapToggle, ShowMap, HideMap, Help, TimeInc, TimeDec, Optics, OpticsTemp, OpticsMode, PersonView, TacticalView, LiteUnitInfoToggle, ZoomIn, ZoomInToggle, ZoomOut, ZoomOutToggle, ZoomContIn, ZoomContOut, ZeroingUp, ZeroingDown, GunElevUp, GunElevDown, GunElevSlow, GunElevAuto, LookAround, LookAroundToggle, LookLeftDown, LookDown, LookRightDown, LookLeft, LookCenter, LookRight, LookLeftUp, LookUp, LookRightUp, LookLeftCont, LookRightCont, LookDownCont, LookUpCont, LookShiftLeftCont, LookShiftRightCont, LookShiftUpCont, LookShiftDownCont, LookShiftForwardCont, LookShiftBackCont, LookRollLeftCont, LookRollRightCont, LookShiftLeft, LookShiftRight, LookShiftUp, LookShiftDown, LookShiftForward, LookShiftBack, LookRollLeft, LookRollRight, LookShiftCenter, FreeHeadMove, PrevChannel, NextChannel, VoiceOverNet, PushToTalk, PushToTalkAll, PushToTalkSide, PushToTalkCommand, PushToTalkGroup, PushToTalkVehicle, PushToTalkDirect, NetworkStats, NetworkPlayers, SelectAll, Turbo, TurboToggle, VehicleTurbo, Walk, HoldBreath, AimUp, AimDown, AimLeft, AimRight, AimHeadUp, AimHeadDown, AimHeadLeft, AimHeadRight, IngamePause, MenuSelect, MenuBack, ForceCommandingMode, SwitchCommand, HeliUp, HeliDown, HeliLeft, HeliRight, AirBankLeft, AirBankRight, HeliRudderLeft, HeliRudderRight, HeliForward, HeliBack, HeliFastForward, HeliThrottlePos, HeliThrottleNeg, HeliBrakes, HeliCyclicForward, HeliCyclicBack, HeliCyclicLeft, HeliCyclicRight, HeliCollectiveRaise, HeliCollectiveLower, HeliCollectiveRaiseCont, HeliCollectiveLowerCont, HeliBatteriesToggle, HeliRotorBrakeToggle, HeliEnginesToggle, HeliWheelsBrake, HeliTrimLeft, HeliTrimRight, HeliTrimForward, HeliTrimBackward, HeliTrimRudderLeft, HeliTrimRudderRight, HeliRopeAction, SubmarineUp, SubmarineDown, SubmarineLeft, SubmarineRight, SubmarineForward, SubmarineBack, SubmarineCyclicForward, SubmarineCyclicBack, SeagullUp, SeagullDown, SeagullForward, SeagullBack, SeagullFastForward, CarLeft, CarRight, CarWheelLeft, CarWheelRight, CarForward, CarBack, CarFastForward, CarSlowForward, CarSoftBrake, CarBrake, CarHandBrake, CarAccelerate, CarGearUp, CarGearDwn, CarShiftFwd1, CarShiftFwd2, CarShiftFwd3, CarShiftFwd4, CarShiftFwd5, CarShiftFwd6, CarShiftFwd7, CarShiftFwd8, CarShiftRvs1, CarShiftRvs2, CarAimUp, CarAimDown, CarAimLeft, CarAimRight, CommandLeft, CommandRight, CommandForward, CommandBack, CommandFast, CommandSlow, SwitchGunnerWeapon, VehLockTargets, VehLockEmptyTargets, SwapGunner, HeliManualFire, CommandWatch, TeamSwitchPrev, TeamSwitchNext, LaunchCM, NextCM, HelicopterTrimOn, HelicopterTrimOff, CopyVersion, BuldSwitchCamera, BuldFreeLook, BuldSelect, BuldResetCamera, BuldMagnetizePoints, BuldMagnetizePlanes, BuldMagnetizeYFixed, BuldTerrainRaise1m, BuldTerrainRaise10cm, BuldTerrainLower1m, BuldTerrainLower10cm, BuldTerrainRaise5m, BuldTerrainRaise50cm, BuldTerrainLower5m, BuldTerrainLower50cm, BuldTerrainShowNode, BuldSelectionType, BuldLeft, BuldRight, BuldForward, BuldBack, BuldMoveLeft, BuldMoveRight, BuldMoveForward, BuldMoveBack, BuldTurbo, BuldUp, BuldDown, BuldLookLeft, BuldLookRight, BuldLookUp, BuldLookDown, BuldZoomIn, BuldZoomOut, BuldTextureInfo, BuldBrushRatio, BuldBrushStrength, BuldBrushSmooth, BuldBrushRandomize, BuldBrushOuter, BuldUndo, BuldRedo, BuldCreateObj, BuldDuplicateSel, BuldRemoveSel, BuldRotateSelX, BuldRotateSelZ, BuldScaleSel, BuldElevateSel, User1, User2, User3, User4, User5, User6, User7, User8, User9, User10, User11, Raise, HeliCollectiveLower, HeliCollectiveRaiseCont, HeliCollectiveLowerCont, HeliBatteriesToggle, HeliRotorBrakeToggle, HeliEnginesToggle, HeliWheelsBrake, HeliTrimLeft, HeliTrimRight, HeliTrimForward, HeliTrimBackward, HeliTrimRudderLeft, HeliTrimRudderRight, HeliRopeAction, SubmarineUp, SubmarineDown, SubmarineLeft, SubmarineRight, SubmarineForward, SubmarineBack, SubmarineCyclicForward, SubmarineCyclicBack, SeagullUp, SeagullDown, SeagullForward, SeagullBack, SeagullFastForward, CarLeft, CarRight, CarWheelLeft, CarWheelRight, CarForward, CarBack, CarFastForward, CarSlowForward, CarSoftBrake, CarBrake, CarHandBrake, CarAccelerate, CarGearUp, CarGearDwn, CarShiftFwd1, CarShiftFwd2, CarShiftFwd3, CarShiftFwd4, CarShiftFwd5, CarShiftFwd6, CarShiftFwd7, CarShiftFwd8, CarShiftRvs1, CarShiftRvs2, CarAimUp, CarAimDown, CarAimLeft, CarAimRight, CommandLeft, CommandRight, CommandForward, CommandBack, CommandFast, CommandSlow, SwitchGunnerWeapon, VehLockTargets, VehLockEmptyTargets, SwapGunner, HeliManualFire, CommandWatch, TeamSwitchPrev, TeamSwitchNext, LaunchCM, NextCM, HelicopterTrimOn, HelicopterTrimOff, CopyVersion, BuldSwitchCamera, BuldFreeLook, BuldSelect, BuldResetCamera, BuldMagnetizePoints, BuldMagnetizePlanes, BuldMagnetizeYFixed, BuldTerrainRaise1m, BuldTerrainRaise10cm, BuldTerrainLower1m, BuldTerrainLower10cm, BuldTerrainRaise5m, BuldTerrainRaise50cm, BuldTerrainLower5m, BuldTerrainLower50cm, BuldTerrainShowNode, BuldSelectionType, BuldLeft, BuldRight, BuldForward, BuldBack, BuldMoveLeft, BuldMoveRight, BuldMoveForward, BuldMoveBack, BuldTurbo, BuldUp, BuldDown, BuldLookLeft, BuldLookRight, BuldLookUp, BuldLookDown, BuldZoomIn, BuldZoomOut, BuldTextureInfo, BuldBrushRatio, BuldBrushStrength, BuldBrushSmooth, BuldBrushRandomize, BuldBrushOuter, BuldUndo, BuldRedo, BuldCreateObj, BuldDuplicateSel, BuldRemoveSel, BuldRotateSelX, BuldRotateSelZ, BuldScaleSel, BuldElevateSel, User1, User2, User3, User4, User5, User6, User7, User8, User9, User10, User11, User12, User13, User14, User15, User16, User17, User18, User19, User20User12, User13, User14, User15, User16, User17, User18, User19, User20'' --[[User:Killzone_Kid|Killzone_Kid]] 20 October 2013 | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 21:14, 20 December 2013
Description
- Description:
- Return the state of input devices mapped to given input action (see Category:Key Actions for action names).
- Groups:
- Uncategorised
Syntax
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
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):
Adjust, MoveForward, MoveBack, TurnLeft, TurnRight, MoveUp, MoveDown, MoveFastForward, MoveSlowForward, MoveLeft, MoveRight, Prone, LeanLeft, LeanRight, LeanLeftToggle, LeanRightToggle, WalkRunToggle, WalkRunTemp, TactToggle, TactTemp, TactShort, NextWeapon, PrevWeapon, DefaultAction, CycleThrownItems, LockTargets, LockEmptyTargets, LockTarget, RevealTarget, ZoomTemp, TempRaiseWeapon, ToggleRaiseWeapon, PrevAction, NextAction, Action, ActionContext, ActionFreeLook, Headlights, NightVision, CompassToggle, WatchToggle, MiniMap, MiniMapToggle, ShowMap, HideMap, Help, TimeInc, TimeDec, Optics, OpticsTemp, OpticsMode, PersonView, TacticalView, LiteUnitInfoToggle, ZoomIn, ZoomInToggle, ZoomOut, ZoomOutToggle, ZoomContIn, ZoomContOut, ZeroingUp, ZeroingDown, GunElevUp, GunElevDown, GunElevSlow, GunElevAuto, LookAround, LookAroundToggle, LookLeftDown, LookDown, LookRightDown, LookLeft, LookCenter, LookRight, LookLeftUp, LookUp, LookRightUp, LookLeftCont, LookRightCont, LookDownCont, LookUpCont, LookShiftLeftCont, LookShiftRightCont, LookShiftUpCont, LookShiftDownCont, LookShiftForwardCont, LookShiftBackCont, LookRollLeftCont, LookRollRightCont, LookShiftLeft, LookShiftRight, LookShiftUp, LookShiftDown, LookShiftForward, LookShiftBack, LookRollLeft, LookRollRight, LookShiftCenter, FreeHeadMove, PrevChannel, NextChannel, VoiceOverNet, PushToTalk, PushToTalkAll, PushToTalkSide, PushToTalkCommand, PushToTalkGroup, PushToTalkVehicle, PushToTalkDirect, NetworkStats, NetworkPlayers, SelectAll, Turbo, TurboToggle, VehicleTurbo, Walk, HoldBreath, AimUp, AimDown, AimLeft, AimRight, AimHeadUp, AimHeadDown, AimHeadLeft, AimHeadRight, IngamePause, MenuSelect, MenuBack, ForceCommandingMode, SwitchCommand, HeliUp, HeliDown, HeliLeft, HeliRight, AirBankLeft, AirBankRight, HeliRudderLeft, HeliRudderRight, HeliForward, HeliBack, HeliFastForward, HeliThrottlePos, HeliThrottleNeg, HeliBrakes, HeliCyclicForward, HeliCyclicBack, HeliCyclicLeft, HeliCyclicRight, HeliCollectiveRaise, HeliCollectiveLower, HeliCollectiveRaiseCont, HeliCollectiveLowerCont, HeliBatteriesToggle, HeliRotorBrakeToggle, HeliEnginesToggle, HeliWheelsBrake, HeliTrimLeft, HeliTrimRight, HeliTrimForward, HeliTrimBackward, HeliTrimRudderLeft, HeliTrimRudderRight, HeliRopeAction, SubmarineUp, SubmarineDown, SubmarineLeft, SubmarineRight, SubmarineForward, SubmarineBack, SubmarineCyclicForward, SubmarineCyclicBack, SeagullUp, SeagullDown, SeagullForward, SeagullBack, SeagullFastForward, CarLeft, CarRight, CarWheelLeft, CarWheelRight, CarForward, CarBack, CarFastForward, CarSlowForward, CarSoftBrake, CarBrake, CarHandBrake, CarAccelerate, CarGearUp, CarGearDwn, CarShiftFwd1, CarShiftFwd2, CarShiftFwd3, CarShiftFwd4, CarShiftFwd5, CarShiftFwd6, CarShiftFwd7, CarShiftFwd8, CarShiftRvs1, CarShiftRvs2, CarAimUp, CarAimDown, CarAimLeft, CarAimRight, CommandLeft, CommandRight, CommandForward, CommandBack, CommandFast, CommandSlow, SwitchGunnerWeapon, VehLockTargets, VehLockEmptyTargets, SwapGunner, HeliManualFire, CommandWatch, TeamSwitchPrev, TeamSwitchNext, LaunchCM, NextCM, HelicopterTrimOn, HelicopterTrimOff, CopyVersion, BuldSwitchCamera, BuldFreeLook, BuldSelect, BuldResetCamera, BuldMagnetizePoints, BuldMagnetizePlanes, BuldMagnetizeYFixed, BuldTerrainRaise1m, BuldTerrainRaise10cm, BuldTerrainLower1m, BuldTerrainLower10cm, BuldTerrainRaise5m, BuldTerrainRaise50cm, BuldTerrainLower5m, BuldTerrainLower50cm, BuldTerrainShowNode, BuldSelectionType, BuldLeft, BuldRight, BuldForward, BuldBack, BuldMoveLeft, BuldMoveRight, BuldMoveForward, BuldMoveBack, BuldTurbo, BuldUp, BuldDown, BuldLookLeft, BuldLookRight, BuldLookUp, BuldLookDown, BuldZoomIn, BuldZoomOut, BuldTextureInfo, BuldBrushRatio, BuldBrushStrength, BuldBrushSmooth, BuldBrushRandomize, BuldBrushOuter, BuldUndo, BuldRedo, BuldCreateObj, BuldDuplicateSel, BuldRemoveSel, BuldRotateSelX, BuldRotateSelZ, BuldScaleSel, BuldElevateSel, User1, User2, User3, User4, User5, User6, User7, User8, User9, User10, User11, Raise, HeliCollectiveLower, HeliCollectiveRaiseCont, HeliCollectiveLowerCont, HeliBatteriesToggle, HeliRotorBrakeToggle, HeliEnginesToggle, HeliWheelsBrake, HeliTrimLeft, HeliTrimRight, HeliTrimForward, HeliTrimBackward, HeliTrimRudderLeft, HeliTrimRudderRight, HeliRopeAction, SubmarineUp, SubmarineDown, SubmarineLeft, SubmarineRight, SubmarineForward, SubmarineBack, SubmarineCyclicForward, SubmarineCyclicBack, SeagullUp, SeagullDown, SeagullForward, SeagullBack, SeagullFastForward, CarLeft, CarRight, CarWheelLeft, CarWheelRight, CarForward, CarBack, CarFastForward, CarSlowForward, CarSoftBrake, CarBrake, CarHandBrake, CarAccelerate, CarGearUp, CarGearDwn, CarShiftFwd1, CarShiftFwd2, CarShiftFwd3, CarShiftFwd4, CarShiftFwd5, CarShiftFwd6, CarShiftFwd7, CarShiftFwd8, CarShiftRvs1, CarShiftRvs2, CarAimUp, CarAimDown, CarAimLeft, CarAimRight, CommandLeft, CommandRight, CommandForward, CommandBack, CommandFast, CommandSlow, SwitchGunnerWeapon, VehLockTargets, VehLockEmptyTargets, SwapGunner, HeliManualFire, CommandWatch, TeamSwitchPrev, TeamSwitchNext, LaunchCM, NextCM, HelicopterTrimOn, HelicopterTrimOff, CopyVersion, BuldSwitchCamera, BuldFreeLook, BuldSelect, BuldResetCamera, BuldMagnetizePoints, BuldMagnetizePlanes, BuldMagnetizeYFixed, BuldTerrainRaise1m, BuldTerrainRaise10cm, BuldTerrainLower1m, BuldTerrainLower10cm, BuldTerrainRaise5m, BuldTerrainRaise50cm, BuldTerrainLower5m, BuldTerrainLower50cm, BuldTerrainShowNode, BuldSelectionType, BuldLeft, BuldRight, BuldForward, BuldBack, BuldMoveLeft, BuldMoveRight, BuldMoveForward, BuldMoveBack, BuldTurbo, BuldUp, BuldDown, BuldLookLeft, BuldLookRight, BuldLookUp, BuldLookDown, BuldZoomIn, BuldZoomOut, BuldTextureInfo, BuldBrushRatio, BuldBrushStrength, BuldBrushSmooth, BuldBrushRandomize, BuldBrushOuter, BuldUndo, BuldRedo, BuldCreateObj, BuldDuplicateSel, BuldRemoveSel, BuldRotateSelX, BuldRotateSelZ, BuldScaleSel, BuldElevateSel, User1, User2, User3, User4, User5, User6, User7, User8, User9, User10, User11, User12, User13, User14, User15, User16, User17, User18, User19, User20User12, User13, User14, User15, User16, User17, User18, User19, User20 --Killzone_Kid 20 October 2013