QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
keys.c File Reference

Macros

#define KEYDEST_CALLBACK_CHUNK   16
 
#define U   __attribute__ ((used))
 

Functions

void Key_ClearStates (void)
 
void Key_CreateIMT (keydest_t kd, const char *imt_name, const char *chain_imt_name)
 
void Key_Event (knum_t key, short unicode, qboolean down)
 
imt_tKey_FindIMT (const char *imt_name)
 
void Key_FocusEvent (int gain)
 
const char * Key_GetBinding (const char *imt_name, knum_t key)
 
void Key_Init (cbuf_t *cb)
 
void Key_Init_Cvars (void)
 
void Key_KeydestCallback (keydest_callback_t *callback)
 
const char * Key_KeynumToString (knum_t keynum)
 
void Key_SetBinding (imt_t *imt, knum_t keynum, const char *binding)
 
void Key_SetKeyDest (keydest_t kd)
 
int Key_StringToKeynum (const char *str)
 
void Key_WriteBindings (QFile *f)
 

Variables

knum_t key_toggleconsole = QFK_BACKQUOTE
 
knum_t key_togglemenu = QFK_ESCAPE
 
int keydown [QFK_LAST]
 
keyname_t keynames []
 

Macro Definition Documentation

#define KEYDEST_CALLBACK_CHUNK   16
#define U   __attribute__ ((used))

Function Documentation

void Key_ClearStates ( void  )
void Key_CreateIMT ( keydest_t  kd,
const char *  imt_name,
const char *  chain_imt_name 
)
void Key_Event ( knum_t  key,
short  unicode,
qboolean  down 
)
imt_t* Key_FindIMT ( const char *  imt_name)
void Key_FocusEvent ( int  gain)
const char* Key_GetBinding ( const char *  imt_name,
knum_t  key 
)
void Key_Init ( cbuf_t cb)
void Key_Init_Cvars ( void  )
void Key_KeydestCallback ( keydest_callback_t callback)
const char* Key_KeynumToString ( knum_t  keynum)
void Key_SetBinding ( imt_t imt,
knum_t  keynum,
const char *  binding 
)
void Key_SetKeyDest ( keydest_t  kd)
int Key_StringToKeynum ( const char *  str)
void Key_WriteBindings ( QFile f)

Variable Documentation

const char* chain_imt_name
const char* imt_name
knum_t key_toggleconsole = QFK_BACKQUOTE
knum_t key_togglemenu = QFK_ESCAPE
int keydown[QFK_LAST]
keyname_t keynames[]