Pyrogenesis  trunk
Classes | Typedefs | Functions | Variables
Hotkey.cpp File Reference
#include "precompiled.h"
#include "Hotkey.h"
#include <boost/tokenizer.hpp>
#include "lib/input.h"
#include "ps/CConsole.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/ConfigDB.h"
#include "ps/Globals.h"
#include "ps/KeyName.h"
Include dependency graph for Hotkey.cpp:

Classes

struct  SKey
 
struct  SHotkeyMapping
 

Typedefs

typedef std::vector< SHotkeyMappingKeyMapping
 

Functions

static void LoadConfigBindings ()
 
void LoadHotkeys ()
 
void UnloadHotkeys ()
 
bool isNegated (const SKey &key)
 
InReaction HotkeyInputHandler (const SDL_Event_ *ev)
 
bool HotkeyIsPressed (const CStr &keyname)
 

Variables

static bool unified [UNIFIED_LAST-UNIFIED_SHIFT]
 
static std::map< int, KeyMappingg_HotkeyMap
 
std::map< std::string, bool > g_HotkeyStatus
 

Typedef Documentation

typedef std::vector<SHotkeyMapping> KeyMapping

Function Documentation

InReaction HotkeyInputHandler ( const SDL_Event_ ev)
bool HotkeyIsPressed ( const CStr &  keyname)
bool isNegated ( const SKey key)
static void LoadConfigBindings ( )
static
void LoadHotkeys ( )
void UnloadHotkeys ( )

Variable Documentation

std::map<int, KeyMapping> g_HotkeyMap
static
std::map<std::string, bool> g_HotkeyStatus
bool unified[UNIFIED_LAST-UNIFIED_SHIFT]
static