$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
GamepadState Struct Reference

#include <gamepad_input.h>

Data Fields

int connected
 
int joystick_id
 
float deadzone
 
float look_sensitivity
 
float move_sensitivity
 
float trigger_threshold
 
unsigned char prev_buttons [15]
 
float axes [6]
 

Field Documentation

◆ axes

float GamepadState::axes[6]

Deadzone-filtered axis snapshot.

◆ connected

int GamepadState::connected

Non-zero if a gamepad is present.

◆ deadzone

float GamepadState::deadzone

Analog stick dead-zone threshold.

◆ joystick_id

int GamepadState::joystick_id

GLFW joystick slot (GLFW_JOYSTICK_1…16).

◆ look_sensitivity

float GamepadState::look_sensitivity

Right-stick sensitivity multiplier.

◆ move_sensitivity

float GamepadState::move_sensitivity

Left-stick sensitivity multiplier.

◆ prev_buttons

unsigned char GamepadState::prev_buttons[15]

Previous frame button state.

◆ trigger_threshold

float GamepadState::trigger_threshold

Trigger activation threshold.


The documentation for this struct was generated from the following file: