Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

KeyMap.cpp File Reference

Implements CKeyMap and related classes for key mapping to sim actions. More...

#include "../Include/KeyMap.h"
#include "../Include/Utility.h"
#include "../Include/Globals.h"
#include "../Include/Ui.h"

Go to the source code of this file.

Classes

struct  SKeyCodeFormatEntry

Functions

void formatKeyCode (char *s, int code)

Variables

static SKeyCodeFormatEntry keyCodeFormatTable []


Detailed Description

Implements the CKeyMap class as well as supporting classes CKeySet and CKeyDefinition. As a descendent of CStreamObject, CKeyMap parses the key map definitions in .key. When a keypress is detected in the application main loop, the CKeyMap class is queried to see if the key has been assigned to any of the simulator action key IDs.

Definition in file KeyMap.cpp.


Function Documentation

void formatKeyCode char *  s,
int  code
 

Definition at line 392 of file KeyMap.cpp.

References KB_MODIFIER_ALT, KB_MODIFIER_CTRL, KB_MODIFIER_META, KB_MODIFIER_SHIFT, SKeyCodeFormatEntry::kbkey, and SKeyCodeFormatEntry::name.

Referenced by keys_buttons_keyset_cb(), and CKeyMap::Print().


Variable Documentation

SKeyCodeFormatEntry keyCodeFormatTable[] [static]
 

Definition at line 286 of file KeyMap.cpp.

SourceForge.net Logo Documentation generated by doxygen