Pyrogenesis  trunk
Functions | Variables
input.cpp File Reference
#include "precompiled.h"
#include "input.h"
#include "lib/external_libraries/libsdl.h"
#include <list>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for input.cpp:

Functions

void in_add_handler (InHandler handler)
 
void in_reset_handlers ()
 
void in_dispatch_event (const SDL_Event_ *ev)
 
void in_push_priority_event (const SDL_Event_ *event)
 
int in_poll_priority_event (SDL_Event_ *event)
 
int in_poll_event (SDL_Event_ *event)
 

Variables

const size_t MAX_HANDLERS = 10
 
static InHandler handler_stack [MAX_HANDLERS]
 
static size_t handler_stack_top = 0
 
static std::list< SDL_Event_priority_events
 

Function Documentation

◆ in_add_handler()

void in_add_handler ( InHandler  handler)

◆ in_dispatch_event()

void in_dispatch_event ( const SDL_Event_ ev)

◆ in_poll_event()

int in_poll_event ( SDL_Event_ event)

◆ in_poll_priority_event()

int in_poll_priority_event ( SDL_Event_ event)

◆ in_push_priority_event()

void in_push_priority_event ( const SDL_Event_ event)

◆ in_reset_handlers()

void in_reset_handlers ( )

Variable Documentation

◆ handler_stack

InHandler handler_stack[MAX_HANDLERS]
static

◆ handler_stack_top

size_t handler_stack_top = 0
static

◆ MAX_HANDLERS

const size_t MAX_HANDLERS = 10

◆ priority_events

std::list<SDL_Event_> priority_events
static