#include <Urho3D/Input/Input.h>
|
|
SDL_Joystick * | joystick_ {} |
| | SDL joystick.
|
| |
|
JoystickDeviceType | type_ {JOYSTICK_TYPE_UNKNOWN} |
| | Joystick device type.
|
| |
|
SDL_JoystickID | joystickID_ {} |
| | SDL joystick instance ID.
|
| |
|
SDL_GameController * | controller_ {} |
| | SDL game controller.
|
| |
|
UIElement * | screenJoystick_ {} |
| | UI element containing the screen joystick.
|
| |
|
ea::string | name_ |
| | Joystick name.
|
| |
|
ea::vector< bool > | buttons_ |
| | Button up/down state.
|
| |
|
ea::vector< bool > | buttonPress_ |
| | Button pressed on this frame.
|
| |
|
ea::vector< float > | axes_ |
| | Axis position from -1 to 1.
|
| |
|
ea::vector< bool > | validAxis_ |
| | Valid axis position.
|
| |
|
ea::vector< int > | hats_ |
| | POV hat bits.
|
| |
Input state for a joystick. @nocount
◆ GetAxisPosition()
| float Urho3D::JoystickState::GetAxisPosition |
( |
unsigned |
index | ) |
const |
|
inline |
◆ GetButtonDown()
| bool Urho3D::JoystickState::GetButtonDown |
( |
unsigned |
index | ) |
const |
|
inline |
Check if a button is held down.
◆ GetButtonPress()
| bool Urho3D::JoystickState::GetButtonPress |
( |
unsigned |
index | ) |
const |
|
inline |
Check if a button has been pressed on this frame.
◆ GetHatPosition()
| int Urho3D::JoystickState::GetHatPosition |
( |
unsigned |
index | ) |
const |
|
inline |
◆ GetNumAxes()
| unsigned Urho3D::JoystickState::GetNumAxes |
( |
| ) |
const |
|
inline |
◆ GetNumButtons()
| unsigned Urho3D::JoystickState::GetNumButtons |
( |
| ) |
const |
|
inline |
Return number of buttons.
◆ GetNumHats()
| unsigned Urho3D::JoystickState::GetNumHats |
( |
| ) |
const |
|
inline |
◆ HasAxisPosition()
| bool Urho3D::JoystickState::HasAxisPosition |
( |
unsigned |
index | ) |
const |
|
inline |
Returns true if has valid axis position.
◆ IsController()
| bool Urho3D::JoystickState::IsController |
( |
| ) |
const |
|
inline |
Return whether is a game controller. Game controllers will use standardized axis and button mappings.
The documentation for this struct was generated from the following files:
- Urho3D/Input/Input.h
- Urho3D/Input/Input.cpp