Pyrogenesis  trunk
Functions | Variables
KeyName.cpp File Reference
#include "precompiled.h"
#include "KeyName.h"
#include "lib/external_libraries/libsdl.h"
#include "ps/CStr.h"
#include <algorithm>
#include <unordered_map>
#include <vector>
Include dependency graph for KeyName.cpp:

Functions

SDL_Scancode FindScancode (const CStr8 &keyname)
 
CStr FindScancodeName (SDL_Scancode scancode)
 
CStr FindKeyName (SDL_Scancode scancode)
 

Variables

static const std::unordered_map< int, std::vector< CStr > > scancodemap
 
static const std::unordered_map< SDL_Keycode, CStr > keyNames
 

Function Documentation

◆ FindKeyName()

CStr FindKeyName ( SDL_Scancode  scancode)

◆ FindScancode()

SDL_Scancode FindScancode ( const CStr8 &  keyname)

◆ FindScancodeName()

CStr FindScancodeName ( SDL_Scancode  scancode)

Variable Documentation

◆ keyNames

const std::unordered_map<SDL_Keycode, CStr> keyNames
static

◆ scancodemap

const std::unordered_map<int, std::vector<CStr> > scancodemap
static