Suckless OGL
1.0.0
A lean, high-performance C11 PBR Renderer
Back to Docs
Main Page
Related Pages
Topics
Data Structures
Files
File List
Globals
Loading...
Searching...
No Matches
camera_input.h
Go to the documentation of this file.
1
#ifndef CAMERA_INPUT_H
2
#define CAMERA_INPUT_H
3
4
/* Forward declaration */
5
typedef
struct
Camera
Camera
;
6
25
void
camera_input_handle_key
(
Camera
* cam,
int
key,
int
action);
26
37
void
camera_input_handle_mouse
(
Camera
* cam,
double
xpos,
double
ypos);
38
45
void
camera_input_handle_scroll
(
Camera
* cam,
double
yoffset);
46
47
/* Forward declaration */
48
typedef
struct
GamepadState
GamepadState
;
49
60
void
camera_apply_gamepad
(
Camera
* cam,
const
GamepadState
* state);
61
62
#endif
/* CAMERA_INPUT_H */
camera_input_handle_mouse
void camera_input_handle_mouse(Camera *cam, double xpos, double ypos)
Processes a mouse movement event to update camera orientation.
Definition
camera_input.c:33
camera_input_handle_key
void camera_input_handle_key(Camera *cam, int key, int action)
Processes a keyboard event to update camera movement flags.
Definition
camera_input.c:9
camera_input_handle_scroll
void camera_input_handle_scroll(Camera *cam, double yoffset)
Processes a scroll event to adjust camera speed or zoom.
Definition
camera_input.c:51
camera_apply_gamepad
void camera_apply_gamepad(Camera *cam, const GamepadState *state)
Applies gamepad input to camera within a fixed physics step.
Definition
camera_input.c:56
Camera
Represents a 3D camera with orientation, movement, and physical properties.
Definition
camera.h:41
GamepadState
Definition
gamepad_input.h:45
include
camera_input.h
Generated by
1.9.8