Untitled
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
28void
30 ( SDL_Window **window, SDL_Event * event_queue, int * event_queue_count, SDL_Event * sdl_queue, int * sdl_queue_count, float physics_dt);
31
36void process_sdl_event(SDL_Event event);
41
42
43
44#endif
void handle_held_events()
Processes UI events for persistent state if the LMB has not been released.
Definition input.c:97
void process_sdl_event(SDL_Event event)
Processes a deferred SDL_Event after the physics loop accumulator.
Definition input.c:107
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
SDL_Window * window
Definition main.c:519