Untitled
Toggle main menu visibility
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1
6
7
#ifndef INPUT_H
8
#define INPUT_H
9
10
11
#include <SDL2/SDL.h>
12
#include <SDL2/SDL_events.h>
13
#include <SDL2/SDL_mouse.h>
14
#include <SDL2/SDL_render.h>
15
#include <SDL2/SDL_scancode.h>
16
#include <SDL2/SDL_timer.h>
17
#include <SDL2/SDL_video.h>
18
19
28
void
29
process_input
30
( SDL_Window **
window
, SDL_Event * event_queue,
int
* event_queue_count, SDL_Event * sdl_queue,
int
* sdl_queue_count,
float
physics_dt);
31
36
void
process_sdl_event
(SDL_Event event);
40
void
handle_held_events
();
41
42
43
44
#endif
handle_held_events
void handle_held_events()
Processes UI events for persistent state if the LMB has not been released.
Definition
input.c:97
process_sdl_event
void process_sdl_event(SDL_Event event)
Processes a deferred SDL_Event after the physics loop accumulator.
Definition
input.c:107
process_input
void process_input(SDL_Window **window, SDL_Event *event_queue, int *event_queue_count, SDL_Event *sdl_queue, int *sdl_queue_count, float physics_dt)
Receives input from SDL in a while loop, pushes th events onto queues to be consumed at the end of th...
Definition
input.c:412
window
SDL_Window * window
Definition
main.c:519
src
core
input.h
Generated by
1.18.0