Starshatter_Open
Open source Starshatter engine
|
#include <KeyMap.h>
Public Types | |
enum | KEY_CATEGORY { KEY_FLIGHT, KEY_WEAPONS, KEY_VIEW, KEY_MISC } |
Public Member Functions | |
KeyMap () | |
virtual | ~KeyMap () |
int | DefaultKeyMap (int max_keys=256) |
int | LoadKeyMap (const char *filename, int max_keys=256) |
int | SaveKeyMap (const char *filename, int max_keys=256) |
int | GetCategory (int i) |
const char * | DescribeAction (int i) |
const char * | DescribeKey (int i) |
int | FindMapIndex (int act) |
int | GetNumKeys () |
KeyMapEntry * | GetMapping () |
KeyMapEntry * | GetKeyMap (int i) |
KeyMapEntry * | GetDefault (int i) |
void | Bind (int a, int k, int s) |
Static Public Member Functions | |
static const char * | DescribeKey (int vk, int shift, int joy) |
static int | GetMappableVKey (int n) |
static int | GetKeyAction (const char *act_str) |
static int | GetKeyActionIndex (int act) |
static int | GetKeyKey (const char *key_str) |
static int | GetKeyKeyIndex (int key) |
Protected Member Functions | |
int | BuildDefaultKeyMap () |
Protected Attributes | |
KeyMapEntry | map [256] |
KeyMapEntry | defmap [256] |
int | nkeys |
enum KeyMap::KEY_CATEGORY |
KeyMap::KeyMap | ( | ) |
Definition at line 389 of file KeyMap.cpp.
|
virtual |
Definition at line 396 of file KeyMap.cpp.
void KeyMap::Bind | ( | int | a, |
int | k, | ||
int | s | ||
) |
Definition at line 557 of file KeyMap.cpp.
|
protected |
Definition at line 402 of file KeyMap.cpp.
int KeyMap::DefaultKeyMap | ( | int | max_keys = 256 | ) |
Definition at line 547 of file KeyMap.cpp.
const char * KeyMap::DescribeAction | ( | int | i | ) |
Definition at line 731 of file KeyMap.cpp.
const char * KeyMap::DescribeKey | ( | int | i | ) |
Definition at line 752 of file KeyMap.cpp.
|
static |
Definition at line 761 of file KeyMap.cpp.
int KeyMap::FindMapIndex | ( | int | act | ) |
Definition at line 720 of file KeyMap.cpp.
int KeyMap::GetCategory | ( | int | i | ) |
Definition at line 704 of file KeyMap.cpp.
|
inline |
|
static |
Definition at line 326 of file KeyMap.cpp.
|
static |
Definition at line 341 of file KeyMap.cpp.
|
static |
Definition at line 354 of file KeyMap.cpp.
|
static |
Definition at line 375 of file KeyMap.cpp.
|
inline |
|
static |
Definition at line 818 of file KeyMap.cpp.
|
inline |
int KeyMap::LoadKeyMap | ( | const char * | filename, |
int | max_keys = 256 |
||
) |
Definition at line 576 of file KeyMap.cpp.
int KeyMap::SaveKeyMap | ( | const char * | filename, |
int | max_keys = 256 |
||
) |
Definition at line 637 of file KeyMap.cpp.
|
protected |
|
protected |