Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
48 #define K(x) { #x, K_##x }
191 if (
diff & (KEY_CONSOLE | KEY_MENU)) {
206 if (key < 0 || key > 255) {
241 return Q_tolower(str[0]);
244 if (!Q_stricmp(str, kn->
name))
262 static char tinystr[2];
265 return "<KEY NOT FOUND>";
267 if (keynum > 32 && keynum < 127 && keynum !=
';' && keynum !=
'"') {
278 return "<UNKNOWN KEYNUM>";
292 for (key = 0; key < 256; key++) {
325 for (; key < 256; key++) {
343 if (keynum < 0 || keynum > 255)
359 ctx->ignorecase = qtrue;
371 ctx->ignorecase = qtrue;
372 for (i = 0; i < 256; i++) {
407 Com_Printf(
"unbind <key> : remove commands from a key\n");
413 Com_Printf(
"\"%s\" isn't a valid key\n",
Cmd_Argv(1));
429 for (i = 0; i < 256; i++)
447 Com_Printf(
"bind <key> [command] : attach a command to a key\n");
452 Com_Printf(
"\"%s\" isn't a valid key\n",
Cmd_Argv(1));
460 Com_Printf(
"\"%s\" is not bound\n",
Cmd_Argv(1));
479 for (i = 0; i < 256; i++) {
498 for (i = 0; i < 256; i++) {
527 for (i = K_ASCIIFIRST; i <= K_ASCIILAST; i++)
531 Q_SetBit(consolekeys, K_##x)
586 for (i = 0; i < 256; i++)
588 for (i =
'a'; i <=
'z'; i++)
627 void Key_Event(
unsigned key, qboolean down,
unsigned time)
630 char cmd[MAX_STRING_CHARS];
633 Com_Error(ERR_FATAL,
"%s: bad key", __func__);
636 Com_DDDPrintf(
"%u: %c%s\n", time,
653 if (!
Key_IsDown(K_SHIFT) && (key ==
'`' || key ==
'~')) {
669 if (key == K_ESCAPE) {
680 }
else if (
keydown[key] == 1) {
741 ((
cls.
key_dest & KEY_MENU) && (key >= K_F1 && key <= K_F12)) ||
752 if (kb && kb[0] ==
'+') {
773 Q_snprintf(cmd,
sizeof(cmd),
"%s %i %i\n", kb, key, time);
832 case K_KP_RIGHTARROW:
853 if (key < 32 || key >= 127) {
885 for (i = 0; i < 256; i++) {
char * Key_GetBindingForKey(int keynum)
qboolean(* R_InterceptKey)(unsigned key, qboolean down)
static void Key_Bind_f(void)
size_t Q_snprintf(char *dest, size_t size, const char *fmt,...)
struct client_static_s::@3 demo
static keywaitcb_t key_wait_cb
void Key_SetOverstrikeMode(qboolean overstrike)
void Key_Console(int key)
void Key_SetDest(keydest_t dest)
static void Key_Bindlist_f(void)
ssize_t FS_FPrintf(qhandle_t f, const char *format,...)
static byte keyshift[256]
qboolean Key_GetOverstrikeMode(void)
static void Key_Bind_c(genctx_t *ctx, int argnum)
int Key_EnumBindings(int key, const char *binding)
static void Key_Name_g(genctx_t *ctx)
void Con_ToggleConsole_f(void)
qboolean Prompt_AddMatch(genctx_t *ctx, const char *s)
void Com_Generic_c(genctx_t *ctx, int argnum)
char * Cmd_ArgsFrom(int from)
void Com_Error(error_type_t type, const char *fmt,...)
static void Key_Unbind_c(genctx_t *ctx, int argnum)
static byte buttondown[256/8]
void SCR_FinishCinematic(void)
void Cbuf_AddText(cmdbuf_t *buf, const char *text)
void Cmd_Register(const cmdreg_t *reg)
void Key_SetBinding(int keynum, const char *binding)
static byte consolekeys[256/8]
char * Key_GetBinding(const char *binding)
void CL_CheckForPause(void)
void Con_Close(qboolean force)
char * Key_KeynumToString(int keynum)
void UI_CharEvent(int key)
void Key_Message(int key)
void UI_OpenMenu(uiMenu_t type)
void Char_Console(int key)
static void Key_Unbindall_f(void)
static qboolean key_overstrike
void VID_ToggleFullscreen(void)
int Key_StringToKeynum(const char *str)
void Key_Event(unsigned key, qboolean down, unsigned time)
keydest_t Key_GetDest(void)
void Key_WriteBindings(qhandle_t f)
static q_noinline int diff(uint32_t A_u32, uint32_t B_u32)
static void Key_Bound_g(genctx_t *ctx)
void CL_ClientCommand(const char *string)
static void * key_wait_arg
void UI_KeyEvent(int key, qboolean down)
void Key_ClearStates(void)
static const keyname_t keynames[]
void Char_Message(int key)
static char * keybindings[256]
void Key_WaitKey(keywaitcb_t wait, void *arg)
static void Key_Unbind_f(void)
struct keyname_s keyname_t