Pyrogenesis trunk
Enumerations | Functions
KeyName.h File Reference
#include "lib/external_libraries/libsdl.h"
#include "ps/CStr.h"
Include dependency graph for KeyName.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  EXTRA_KEYS_BASE = SDL_NUM_SCANCODES , UNIFIED_SHIFT , UNIFIED_CTRL , UNIFIED_ALT ,
  UNIFIED_SUPER , UNIFIED_LAST , MOUSE_BASE , MOUSE_LEFT = MOUSE_BASE + SDL_BUTTON_LEFT ,
  MOUSE_MIDDLE = MOUSE_BASE + SDL_BUTTON_MIDDLE , MOUSE_RIGHT = MOUSE_BASE + SDL_BUTTON_RIGHT , MOUSE_WHEELUP = MOUSE_BASE + 4 , MOUSE_WHEELDOWN = MOUSE_BASE + 5 ,
  MOUSE_X1 = MOUSE_BASE + SDL_BUTTON_X1 + 2 , MOUSE_X2 = MOUSE_BASE + SDL_BUTTON_X2 + 2 , MOUSE_LAST
}
 

Functions

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EXTRA_KEYS_BASE 
UNIFIED_SHIFT 
UNIFIED_CTRL 
UNIFIED_ALT 
UNIFIED_SUPER 
UNIFIED_LAST 
MOUSE_BASE 
MOUSE_LEFT 
MOUSE_MIDDLE 
MOUSE_RIGHT 
MOUSE_WHEELUP 
MOUSE_WHEELDOWN 
MOUSE_X1 
MOUSE_X2 
MOUSE_LAST 

Function Documentation

◆ FindKeyName()

CStr8 FindKeyName ( SDL_Scancode  scancode)

◆ FindScancode()

SDL_Scancode FindScancode ( const CStr8 &  keyname)

◆ FindScancodeName()

CStr8 FindScancodeName ( SDL_Scancode  scancode)