icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
29 #define MAXCMDLINE 256
172 if (*s ==
'\\' || *s ==
'/')
257 strtok( cbd,
"\n\r\b" );
380 if (key < 32 || key > 127)
424 if (key < 32 || key > 127)
485 static char tinystr[2];
488 return "<KEY NOT FOUND>";
489 if (keynum > 32 && keynum < 127)
500 return "<UNKNOWN KEYNUM>";
525 l = strlen (binding);
527 strcpy (
new, binding);
543 Com_Printf (
"unbind <key> : remove commands from a key\n");
581 Com_Printf (
"bind <key> [command] : attach a command to a key\n");
602 for (
i=2 ;
i< c ;
i++)
654 for (
i=0 ;
i<32 ;
i++)
664 for (
i=32 ;
i<128 ;
i++)
700 for (
i=
'a' ;
i<=
'z' ;
i++)
725 for (
i=0 ;
i<12 ;
i++)
783 if (key ==
'`' || key ==
'~')
849 if (kb && kb[0] ==
'+')
851 Com_sprintf (cmd,
sizeof(cmd),
"-%s %i %i\n", kb+1, key, time);
857 if (kb && kb[0] ==
'+')
859 Com_sprintf (cmd,
sizeof(cmd),
"-%s %i %i\n", kb+1, key, time);
878 Com_sprintf (cmd,
sizeof(cmd),
"%s %i %i\n", kb, key, time);
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)
char * keybindings[K_LAST]
void Con_ToggleConsole_f(void)
void SCR_UpdateScreen(void)
char * Cmd_CompleteCommand(char *partial)
qboolean consolekeys[K_LAST]
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)
qboolean menubound[K_LAST]
void Key_Message(int key)
player_state_t playerstate
void Key_Unbindall_f(void)
char key_lines[32][MAXCMDLINE]
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)