![]() |
Space Fighter
A "shmup" game for Computer Programming C++
|
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. | |
| bool | IsButtonUp (Button button) const |
| Determines if a button is up. | |
| void | Reset () |
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. | |
Represents specific information about the state of an Xbox Controller, including the current state of buttons and sticks.
Definition at line 128 of file GamePadState.h.
|
inline |
Determines if a button is pressed down.
| button | The button to test. |
Definition at line 140 of file GamePadState.h.
|
inline |
Determines if a button is up.
| button | The button to test. |
Definition at line 169 of file GamePadState.h.
|
inline |
Definition at line 171 of file GamePadState.h.
| GamePadButtons KatanaEngine::GamePadState::Buttons |
The current state of the GamePad's Buttons.
Definition at line 131 of file GamePadState.h.
| GamePadDPad KatanaEngine::GamePadState::DPad |
The current state of the GamePad's DPad.
Definition at line 134 of file GamePadState.h.
| ALLEGRO_JOYSTICK* KatanaEngine::GamePadState::ID |
The underlaying allegro joystick id.
Definition at line 135 of file GamePadState.h.
| bool KatanaEngine::GamePadState::IsConnected |
True if the GamePad is connected, false otherwise.
Definition at line 130 of file GamePadState.h.
| GamePadThumbSticks KatanaEngine::GamePadState::Thumbsticks |
The current state of the GamePad's Thumbsticks.
Definition at line 132 of file GamePadState.h.
| GamePadTriggers KatanaEngine::GamePadState::Triggers |
The current state of the GamePad's Triggers.
Definition at line 133 of file GamePadState.h.