Cocos2D.CCInputState
Class CCInputState
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
Helper for reading input from keyboard, gamepad, and touch input. This class tracks both the current and previous state of the input devices, and implements query methods for high level input actions such as "move up through the menu" or "pause the game".
public class CCInputState
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentGamePadStates
public readonly GamePadState[] CurrentGamePadStates
Field Value
GamePadState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentKeyboardStates
public readonly KeyboardState[] CurrentKeyboardStates
Field Value
KeyboardState[]
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
CurrentMouseState
public MouseState CurrentMouseState
Field Value
MouseState
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
GamePadWasConnected
public readonly bool[] GamePadWasConnected
Field Value
bool[]
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Gestures
public readonly List<GestureSample> Gestures
Field Value
List<GestureSample>
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
Instance
public static readonly CCInputState Instance
Field Value
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastGamePadStates
public readonly GamePadState[] LastGamePadStates
Field Value
GamePadState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastKeyboardStates
public readonly KeyboardState[] LastKeyboardStates
Field Value
KeyboardState[]
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
LastMouseState
public MouseState LastMouseState
Field Value
MouseState
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
MaxInputs
public const int MaxInputs = 4
Field Value
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
TouchState
public TouchCollection TouchState
Field Value
TouchCollection
Properties
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
ConsumeGamePadState
public bool ConsumeGamePadState { get; set; }
Property Value
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
Mouse
public MouseState Mouse { get; }
Property Value
MouseState
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MousePosition
public Point MousePosition { get; }
Property Value
Point
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelPosition
public float MouseScrollWheelPosition { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseScrollWheelVelocity
public float MouseScrollWheelVelocity { get; }
Property Value
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
MouseVelocity
public Vector2 MouseVelocity { get; }
Property Value
Vector2
Methods
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsBackPress(PlayerIndex?)
public bool IsBackPress(PlayerIndex? controllingPlayer)
Parameters
controllingPlayer
PlayerIndex?
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
Helper for checking if a button was newly pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a button press is detected, the output playerIndex reports which player pressed it.
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
Helper for checking if a button was newly pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a button press is detected, the output playerIndex reports which player pressed it.
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPress(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
Helper for checking if a button was pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a button press is detected, the output playerIndex reports which player pressed it.
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
Helper for checking if a button was pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a button press is detected, the output playerIndex reports which player pressed it.
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
public bool IsButtonPressed(Buttons button, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
button
Buttons
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
Helper for checking if a key was newly pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a keypress is detected, the output playerIndex reports which player pressed it.
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
Helper for checking if a key was newly pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a keypress is detected, the output playerIndex reports which player pressed it.
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPress(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
Helper for checking if a key was pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a keypress is detected, the output playerIndex reports which player pressed it.
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
Helper for checking if a key was pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a keypress is detected, the output playerIndex reports which player pressed it.
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
public bool IsKeyPressed(Keys key, PlayerIndex? controllingPlayer, out PlayerIndex playerIndex)
Parameters
key
Keys
controllingPlayer
PlayerIndex?
playerIndex
PlayerIndex
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonDown(CCMouseButtons)
public bool IsMouseButtonDown(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonPress(CCMouseButtons)
public bool IsMouseButtonPress(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonRelease(CCMouseButtons)
public bool IsMouseButtonRelease(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
IsMouseButtonUp(CCMouseButtons)
public bool IsMouseButtonUp(CCMouseButtons button)
Parameters
button
CCMouseButtons
Returns
Update(float)
Reads the latest state user input.
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
Reads the latest state user input.
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime
float