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

Minimal camera state slice for gamepad input application. More...

#include <gamepad_context.h>

Data Fields

float move_input [3]
 
float yaw_target
 
float pitch_target
 
float fixed_timestep
 
float max_pitch
 
float min_pitch
 

Detailed Description

Minimal camera state slice for gamepad input application.

The caller fills this from Camera fields before calling gamepad_write_input(), then copies the results back.

Field Documentation

◆ fixed_timestep

float GamepadContext::fixed_timestep

Physics step duration (seconds).

◆ max_pitch

float GamepadContext::max_pitch

Upper pitch clamp (degrees).

◆ min_pitch

float GamepadContext::min_pitch

Lower pitch clamp (degrees).

◆ move_input

float GamepadContext::move_input[3]

[right/left, up/down, fwd/back].

◆ pitch_target

float GamepadContext::pitch_target

Target pitch in degrees.

◆ yaw_target

float GamepadContext::yaw_target

Target yaw in degrees.


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