InputPlayerState
What one player's remote/gamepad/controller is doing right now, as tracked by BGE.Debug.InputStateTracker for the input debug window.
Properties
playerIndex(integer)isGamepad(boolean) — True once this player sends a gamepad-only button or moves a stickpressedAt(object) — Lowercased button name -> tracker clock (seconds) when it was pressed, only while heldleftStick(BGE.Math.Vector)rightStick(BGE.Math.Vector)
Constructor
new InputPlayerState(playerIndex: integer): InputPlayerStateParameters
playerIndex(integer)
Instance Methods
isHeld(buttonName: string): boolean
Parameters
buttonName(string) — lowercased button name
Returns
boolean
isAnyHeld(buttonNames: Array.<string>): boolean
Parameters
buttonNames(Array.<string>) — lowercased button names
Returns
boolean