|
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
|
#include <gamepad_input.h>
Data Fields | |
| bool | connected |
| int | joystick_id |
| float | deadzone |
| float | look_sensitivity |
| float | move_sensitivity |
| float | trigger_threshold |
| unsigned char | prev_buttons [15] |
| float | axes [6] |
| float GamepadState::axes[6] |
Deadzone-filtered axis snapshot.
| bool GamepadState::connected |
Non-zero if a gamepad is present.
| float GamepadState::deadzone |
Analog stick dead-zone threshold.
| int GamepadState::joystick_id |
GLFW joystick slot (GLFW_JOYSTICK_1…16).
| float GamepadState::look_sensitivity |
Right-stick sensitivity multiplier.
| float GamepadState::move_sensitivity |
Left-stick sensitivity multiplier.
| unsigned char GamepadState::prev_buttons[15] |
Previous frame button state.
| float GamepadState::trigger_threshold |
Trigger activation threshold.