#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Input/Input.h>
Input state for a joystick.
◆ GetAxisPosition()
float Dviglo::JoystickState::GetAxisPosition |
( |
unsigned |
index | ) |
const |
|
inline |
◆ GetButtonDown()
bool Dviglo::JoystickState::GetButtonDown |
( |
unsigned |
index | ) |
const |
|
inline |
Check if a button is held down.
◆ GetButtonPress()
bool Dviglo::JoystickState::GetButtonPress |
( |
unsigned |
index | ) |
const |
|
inline |
Check if a button has been pressed on this frame.
◆ GetHatPosition()
int Dviglo::JoystickState::GetHatPosition |
( |
unsigned |
index | ) |
const |
|
inline |
◆ GetNumAxes()
unsigned Dviglo::JoystickState::GetNumAxes |
( |
| ) |
const |
|
inline |
◆ GetNumButtons()
unsigned Dviglo::JoystickState::GetNumButtons |
( |
| ) |
const |
|
inline |
Return number of buttons.
◆ GetNumHats()
unsigned Dviglo::JoystickState::GetNumHats |
( |
| ) |
const |
|
inline |
◆ IsController()
bool Dviglo::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:
- /home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Input/Input.h
- /home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Input/Input.cpp