Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Enumerations | |
enum | KB_MODIFIER_ENUM { KB_MOD_ALT =1, KB_MOD_CTRL =2, KB_MOD_SHIFT =4, KB_MOD_MASK =7 } |
Functions | |
unsigned int | getActiveModifiers () |
unsigned int | pullActiveModifiers () |
void | setActiveModifiers (unsigned int mask) |
unsigned int | getModifier (const char *mod_name) |
void | ProcessKB (unsigned int player) |
void | BindKey (int key, unsigned int modifiers, unsigned int player, KBHandler handler, const KBData &data) |
void | UnbindKey (int key, unsigned int modifiers) |
void | InitKB () |
void | RestoreKB () |
Variables | |
const int | KEYMAP_SIZE = WSK_LAST |
const int | LAST_MODIFIER = KB_MOD_MASK+1 |
enum KB_MODIFIER_ENUM |
void BindKey | ( | int | key, |
unsigned int | modifiers, | ||
unsigned int | player, | ||
KBHandler | handler, | ||
const KBData & | data | ||
) |
Definition at line 213 of file in_kb.cpp.
References HandlerCall::data, HandlerCall::function, playerBindings, and RESET.
Referenced by createObjects(), and InitializeInput().
unsigned int getActiveModifiers | ( | ) |
Definition at line 109 of file in_kb.cpp.
References _activeModifiers.
Referenced by pullActiveModifiers().
unsigned int getModifier | ( | const char * | mod_name) |
Definition at line 120 of file in_kb.cpp.
References KB_MOD_ALT, KB_MOD_CTRL, and KB_MOD_SHIFT.
Referenced by glut_keyboard_cb().
void InitKB | ( | ) |
Definition at line 195 of file in_kb.cpp.
References a, i, KEYMAP_SIZE, keyState, LAST_MODIFIER, RestoreKB(), UnbindKey(), and UP.
Referenced by InitInput().
void ProcessKB | ( | unsigned int | player) |
Definition at line 205 of file in_kb.cpp.
References a, HandlerCall::function, KEYMAP_SIZE, keyState, LAST_MODIFIER, and playerBindings.
Referenced by ProcessInput().
unsigned int pullActiveModifiers | ( | ) |
Definition at line 113 of file in_kb.cpp.
References getActiveModifiers().
Referenced by BaseUtil::SetKeyStatusEventData().
void RestoreKB | ( | ) |
Definition at line 184 of file in_kb.cpp.
References a, DOWN, HandlerCall::function, glut_keyboard_cb(), i, KEYMAP_SIZE, keyState, LAST_MODIFIER, RELEASE, UP, and winsys_set_keyboard_func().
Referenced by GameCockpit::Draw(), InitKB(), restore_main_loop(), CockpitKeys::TextMessageCallback(), and NavComputer::toggleVisibility().
void setActiveModifiers | ( | unsigned int | mask) |
Definition at line 96 of file in_kb.cpp.
References _activeModifiers.
Referenced by base_keyboard_cb(), gamemenu_keyboard_handler(), and glut_keyboard_cb().
Definition at line 40 of file in_kb.h.
Referenced by InitKB(), ProcessKB(), and RestoreKB().
const int LAST_MODIFIER = KB_MOD_MASK+1 |
Definition at line 41 of file in_kb.h.
Referenced by glut_keyboard_cb(), InitKB(), ProcessKB(), and RestoreKB().