Go to the documentation of this file.
30 #define MAXCMDLINE 256
171 if (*
s ==
'\\' || *
s ==
'/')
254 strtok( cbd,
"\n\r\b" );
256 i = (
int)strlen( cbd );
377 if (key < 32 || key > 127)
421 if (key < 32 || key > 127)
482 static char tinystr[2];
485 return "<KEY NOT FOUND>";
486 if (keynum > 32 && keynum < 127)
497 return "<UNKNOWN KEYNUM>";
522 l = (
int)strlen (binding);
524 strcpy (
new, binding);
540 Com_Printf (
"unbind <key> : remove commands from a key\n");
558 for (
i=0 ;
i<256 ;
i++)
578 Com_Printf (
"bind <key> [command] : attach a command to a key\n");
599 for (
i=2 ;
i< c ;
i++)
620 for (
i=0 ;
i<256 ;
i++)
636 for (
i=0 ;
i<256 ;
i++)
651 for (
i=0 ;
i<128 ;
i++)
661 for (
i=32 ;
i<128 ;
i++)
697 for (
i=0 ;
i<256 ;
i++)
699 for (
i=
'a' ;
i<=
'z' ;
i++)
724 for (
i=0 ;
i<12 ;
i++)
801 if (key ==
'`' || key ==
'~')
865 if (kb && kb[0] ==
'+')
867 Com_sprintf (cmd,
sizeof(cmd),
"-%s %i %i\n", kb+1, key, time);
873 if (kb && kb[0] ==
'+')
875 Com_sprintf (cmd,
sizeof(cmd),
"-%s %i %i\n", kb+1, key, time);
894 Com_sprintf (cmd,
sizeof(cmd),
"%s %i %i\n", kb, key, time);
941 for (
i=0 ;
i<256 ;
i++)
CONST PIXELFORMATDESCRIPTOR int
void Key_WriteBindings(FILE *f)
char chat_buffer[MAXCMDLINE]
void Key_SetBinding(int keynum, char *binding)
void Key_Event(int key, qboolean down, unsigned time)
int Key_StringToKeynum(char *str)
void Con_ToggleConsole_f(void)
qboolean consolekeys[256]
void SCR_UpdateScreen(void)
char * Cmd_CompleteCommand(char *partial)
void Sys_SendKeyEvents(void)
void Cmd_AddCommand(char *cmd_name, xcommand_t function)
void Key_Bindlist_f(void)
void Cbuf_AddText(char *text)
char * Cvar_CompleteVariable(char *partial)
void Com_Error(int code, char *fmt,...)
char * Key_KeynumToString(int keynum)
void * Z_Malloc(int size)
void Key_Message(int key)
player_state_t playerstate
void Key_Unbindall_f(void)
char key_lines[128][MAXCMDLINE]
cvar_t * Cvar_Set(char *var_name, char *value)
void Com_Printf(char *fmt,...)
int Q_strcasecmp(char *s1, char *s2)
void Key_Console(int key)
void Key_ClearStates(void)
char * Sys_GetClipboardData(void)
void Com_sprintf(char *dest, int size, char *fmt,...)
void CompleteCommand(void)