Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
Hotkey.cpp File Reference
#include "precompiled.h"
#include "Hotkey.h"
#include "lib/input.h"
#include "ConfigDB.h"
#include "CLogger.h"
#include "CConsole.h"
#include "CStr.h"
#include "ps/Globals.h"
#include "KeyName.h"

Go to the source code of this file.

Classes

struct  SKey
 
struct  SHotkeyMapping
 

Macros

#define SDLKEY   SDLKey
 

Typedefs

typedef std::vector
< SHotkeyMapping
KeyMapping
 

Functions

static void LoadConfigBindings ()
 
void LoadHotkeys ()
 
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
 

Macro Definition Documentation

#define SDLKEY   SDLKey

Definition at line 34 of file Hotkey.cpp.

Typedef Documentation

typedef std::vector<SHotkeyMapping> KeyMapping

Definition at line 51 of file Hotkey.cpp.

Function Documentation

InReaction HotkeyInputHandler ( const SDL_Event_ ev)

Definition at line 175 of file Hotkey.cpp.

bool HotkeyIsPressed ( const CStr &  keyname)

Definition at line 400 of file Hotkey.cpp.

static void LoadConfigBindings ( )
static

Definition at line 63 of file Hotkey.cpp.

void LoadHotkeys ( )

Definition at line 145 of file Hotkey.cpp.

Variable Documentation

std::map<int, KeyMapping> g_HotkeyMap
static

Definition at line 56 of file Hotkey.cpp.

std::map<std::string, bool> g_HotkeyStatus

Definition at line 59 of file Hotkey.cpp.

bool unified[UNIFIED_LAST-UNIFIED_SHIFT]
static

Definition at line 29 of file Hotkey.cpp.