Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
basic_input.h File Reference
#include "SDL_events.h"

Go to the source code of this file.

Functions

void handle_input (void)
 
SDL_Scancode get_scancode (const SDL_Event event)
 

Function Documentation

◆ get_scancode()

SDL_Scancode get_scancode ( const SDL_Event  event)

Given an SDL_Event, it returns the keyboard key scancode that matches that event

Parameters
eventSDL_Event, an event type from SDL

◆ handle_input()

void handle_input ( void  )

Handle user input