Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
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 <stdbool.h>
#include "app_subsystem.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...
 

Macros

#define APP_INPUT_DESCRIPTOR    {"input", app_input_subsys_init, app_input_subsys_cleanup}
 

Functions

void app_input_state_init (AppInput *input)
 Initialize all input sub-systems to default state.
 
void app_input_state_cleanup (AppInput *input)
 Release all input resources.
 
int app_input_subsys_init (struct App *app)
 
void app_input_subsys_cleanup (struct App *app)
 

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).

Macro Definition Documentation

◆ APP_INPUT_DESCRIPTOR

#define APP_INPUT_DESCRIPTOR    {"input", app_input_subsys_init, app_input_subsys_cleanup}

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:

◆ app_input_subsys_cleanup()

void app_input_subsys_cleanup ( struct App *  app)
Here is the call graph for this function:

◆ app_input_subsys_init()

int app_input_subsys_init ( struct App *  app)
Here is the call graph for this function: