vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
in_kb.cpp File Reference
#include <queue>
#include <list>
#include "vegastrike.h"
#include "vs_globals.h"
#include "in_kb.h"
#include "in_handler.h"
#include "gldrv/winsys.h"
#include "in_kb_data.h"

Go to the source code of this file.

Classes

struct  HandlerCall
 

Functions

int shiftup (int ch)
 
int shiftdown (int ch)
 
void setActiveModifiers (unsigned int mask)
 
unsigned int getActiveModifiers ()
 
unsigned int pullActiveModifiers ()
 
unsigned int getModifier (const char *mod_name)
 
int getModifier (bool alton, bool cntrlon, bool shifton)
 
void glut_keyboard_cb (unsigned int ch, unsigned int mod, bool release, int x, int y)
 
void RestoreKB ()
 
void InitKB ()
 
void ProcessKB (unsigned int player)
 
void BindKey (int key, unsigned int mod, unsigned int player, KBHandler handler, const KBData &data)
 
void UnbindKey (int key, unsigned int mod)
 

Variables

KBSTATE keyState [LAST_MODIFIER][WSK_LAST]
 

Function Documentation

void BindKey ( int  key,
unsigned int  mod,
unsigned int  player,
KBHandler  handler,
const KBData data 
)

Definition at line 213 of file in_kb.cpp.

unsigned int getActiveModifiers ( )

Definition at line 109 of file in_kb.cpp.

unsigned int getModifier ( const char *  mod_name)

Definition at line 120 of file in_kb.cpp.

int getModifier ( bool  alton,
bool  cntrlon,
bool  shifton 
)

Definition at line 133 of file in_kb.cpp.

void glut_keyboard_cb ( unsigned int  ch,
unsigned int  mod,
bool  release,
int  x,
int  y 
)

Definition at line 137 of file in_kb.cpp.

void InitKB ( )

Definition at line 195 of file in_kb.cpp.

void ProcessKB ( unsigned int  player)

Definition at line 205 of file in_kb.cpp.

unsigned int pullActiveModifiers ( )

Definition at line 113 of file in_kb.cpp.

void RestoreKB ( )

Definition at line 184 of file in_kb.cpp.

void setActiveModifiers ( unsigned int  mask)

Definition at line 96 of file in_kb.cpp.

int shiftdown ( int  ch)

Definition at line 83 of file in_kb.cpp.

int shiftup ( int  ch)

Definition at line 72 of file in_kb.cpp.

void UnbindKey ( int  key,
unsigned int  mod 
)

Definition at line 221 of file in_kb.cpp.

Variable Documentation

KBSTATE keyState[LAST_MODIFIER][WSK_LAST]

Definition at line 46 of file in_kb.cpp.