Input state for a joystick. @nocount
More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Input/Input.h>
|
void | Initialize (i32 numButtons, i32 numAxes, i32 numHats) |
| Initialize the number of buttons, axes and hats and set them to neutral state.
|
|
void | Reset () |
| Reset button, axis and hat states to neutral.
|
|
bool | IsController () const |
| Return whether is a game controller. Game controllers will use standardized axis and button mappings.
|
|
i32 | GetNumButtons () const |
| Return number of buttons.
|
|
i32 | GetNumAxes () const |
| Return number of axes.
|
|
i32 | GetNumHats () const |
| Return number of hats.
|
|
bool | GetButtonDown (i32 index) const |
| Check if a button is held down.
|
|
bool | GetButtonPress (i32 index) const |
| Check if a button has been pressed on this frame.
|
|
float | GetAxisPosition (i32 index) const |
| Return axis position.
|
|
int | GetHatPosition (i32 index) const |
| Return hat position.
|
|
|
SDL_Joystick * | joystick_ {} |
| SDL joystick.
|
|
SDL_JoystickID | joystickID_ {} |
| SDL joystick instance ID.
|
|
SDL_GameController * | controller_ {} |
| SDL game controller.
|
|
UIElement * | screenJoystick_ {} |
| UI element containing the screen joystick.
|
|
String | name_ |
| Joystick name.
|
|
Vector< bool > | buttons_ |
| Button up/down state.
|
|
Vector< bool > | buttonPress_ |
| Button pressed on this frame.
|
|
Vector< float > | axes_ |
| Axis position from -1 to 1.
|
|
Vector< int > | hats_ |
| POV hat bits.
|
|
Input state for a joystick. @nocount
The documentation for this struct was generated from the following files:
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Input/Input.h
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Input/Input.cpp