Arcade Shooter
Public Member Functions | Public Attributes | List of all members
KatanaEngine::GamePadState Struct Reference

Represents specific information about the state of an Xbox Controller, including the current state of buttons and sticks. More...

#include <GamePadState.h>

Public Member Functions

bool IsButtonDown (Button button) const
 Determines if a button is pressed down. More...
 
bool IsButtonUp (Button button) const
 Determines if a button is up. More...
 

Public Attributes

bool IsConnected
 True if the GamePad is connected, false otherwise.
 
GamePadButtons Buttons
 The current state of the GamePad's Buttons.
 
GamePadThumbSticks Thumbsticks
 The current state of the GamePad's Thumbsticks.
 
GamePadTriggers Triggers
 The current state of the GamePad's Triggers.
 
GamePadDPad Dpad
 The current state of the GamePad's Dpad.
 
ALLEGRO_JOYSTICK * ID
 The underlaying allegro joystick id.
 

Detailed Description

Represents specific information about the state of an Xbox Controller, including the current state of buttons and sticks.

See also
Button
ButtonState
GamePadDPad
GamePadTriggers
GamePadThumbSticks
GamePadButtons

Member Function Documentation

◆ IsButtonDown()

bool KatanaEngine::GamePadState::IsButtonDown ( Button  button) const
inline

Determines if a button is pressed down.

Parameters
buttonThe button to test.
Returns
Returns true if the button is down, false otherwise.

◆ IsButtonUp()

bool KatanaEngine::GamePadState::IsButtonUp ( Button  button) const
inline

Determines if a button is up.

Parameters
buttonThe button to test.
Returns
Returns true if the button is up, false otherwise.

The documentation for this struct was generated from the following file: