#include <ugdk/input/joystick.h>
ugdk::input::Joystick::~Joystick |
( |
| ) |
|
An event handler for events that matching this joystick.
AxisStatus ugdk::input::Joystick::GetAxisStatus |
( |
int |
axis | ) |
const |
Get the current state of an axis control.
Get the ball axis changes since last frame.
HatStatus ugdk::input::Joystick::GetHatStatus |
( |
int |
hat | ) |
const |
Get the current state of a POV hat.
bool ugdk::input::Joystick::IsConnected |
( |
| ) |
const |
Checks if the joystick is currently connected.
bool ugdk::input::Joystick::IsDown |
( |
int |
button | ) |
const |
Checks if the given button is currently being held.
bool ugdk::input::Joystick::IsUp |
( |
int |
button | ) |
const |
Checks if there's currently no interaction with the given button.
int ugdk::input::Joystick::NumAxes |
( |
| ) |
const |
Get the number of general axis controls.
int ugdk::input::Joystick::NumButtons |
( |
| ) |
const |
Get the number of buttons.
int ugdk::input::Joystick::NumHats |
( |
| ) |
const |
Get the number of POV hats.
int ugdk::input::Joystick::NumTrackballs |
( |
| ) |
const |
Get the number of trackballs.
Trackballs have only relative motion events associated with them and their state cannot be polled.
The documentation for this class was generated from the following file: