$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
app_input_state.h File Reference

Camera, gamepad, key-bindings, and input smoothing sub-struct. More...

#include "adaptive_sampler.h"
#include "app_binding.h"
#include "camera.h"
#include "gamepad_input.h"
Include dependency graph for app_input_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AppInput
 Camera, gamepad, key-bindings, and input smoothing grouped together. More...
 

Functions

void app_input_state_init (AppInput *input)
 Initialize all input sub-systems to default state. More...
 
void app_input_state_cleanup (AppInput *input)
 Release all input resources. More...
 

Detailed Description

Camera, gamepad, key-bindings, and input smoothing sub-struct.

Extracted from app.h to reduce include fan-out. Named "app_input_state" to avoid collision with the existing app_input.h (AppInputContext seam, issue #204).

Function Documentation

◆ app_input_state_cleanup()

void app_input_state_cleanup ( AppInput *  input)

Release all input resources.

Parameters
inputPointer to the input sub-struct.
Here is the call graph for this function:

◆ app_input_state_init()

void app_input_state_init ( AppInput *  input)

Initialize all input sub-systems to default state.

Parameters
inputPointer to the input sub-struct.
Here is the call graph for this function: