Changeset View
Changeset View
Standalone View
Standalone View
source/lib/input.cpp
Show All 21 Lines | |||||
/* | /* | ||||
* SDL input redirector; dispatches to multiple handlers. | * SDL input redirector; dispatches to multiple handlers. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "input.h" | #include "input.h" | ||||
#include "lib/external_libraries/libsdl.h" | |||||
#include <list> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include "lib/external_libraries/libsdl.h" | |||||
const size_t MAX_HANDLERS = 9; | const size_t MAX_HANDLERS = 9; | ||||
static InHandler handler_stack[MAX_HANDLERS]; | static InHandler handler_stack[MAX_HANDLERS]; | ||||
static size_t handler_stack_top = 0; | static size_t handler_stack_top = 0; | ||||
static std::list<SDL_Event_> priority_events; | static std::list<SDL_Event_> priority_events; | ||||
void in_add_handler(InHandler handler) | void in_add_handler(InHandler handler) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator