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

Macros

#define OPEN_DEBUG_WINDOW_BUTTON   SDL_GetScancodeFromKey('|')
 

Functions

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

Macro Definition Documentation

◆ OPEN_DEBUG_WINDOW_BUTTON

#define OPEN_DEBUG_WINDOW_BUTTON   SDL_GetScancodeFromKey('|')

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