![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | eventqueueitem_t |
struct | keyname_t |
Macros | |
#define | KM_ALT (!keydown[K_CTRL] && !keydown[K_SHIFT] && keydown[K_ALT]) |
#define | KM_CTRL ( keydown[K_CTRL] && !keydown[K_SHIFT] && !keydown[K_ALT]) |
#define | KM_CTRL_ALT ( keydown[K_CTRL] && !keydown[K_SHIFT] && keydown[K_ALT]) |
#define | KM_CTRL_SHIFT ( keydown[K_CTRL] && keydown[K_SHIFT] && !keydown[K_ALT]) |
#define | KM_CTRL_SHIFT_ALT ( keydown[K_CTRL] && keydown[K_SHIFT] && keydown[K_ALT]) |
#define | KM_NONE (!keydown[K_CTRL] && !keydown[K_SHIFT] && !keydown[K_ALT]) |
#define | KM_SHIFT (!keydown[K_CTRL] && keydown[K_SHIFT] && !keydown[K_ALT]) |
#define | KM_SHIFT_ALT (!keydown[K_CTRL] && keydown[K_SHIFT] && keydown[K_ALT]) |
Definition at line 689 of file keys.c.
Referenced by Key_Console(), and Key_Parse_CommonKeys().
Definition at line 686 of file keys.c.
Referenced by Key_Console().
Definition at line 684 of file keys.c.
Referenced by Key_Console(), and Key_Parse_CommonKeys().
Definition at line 690 of file keys.c.
Referenced by Key_Console(), and Key_Parse_CommonKeys().
Definition at line 703 of file keys.c.
References buf, chat_buffer, chat_bufferpos, int(), key_insert, key_line, key_linepos, MAX_INPUTLINE, strlen(), u8_bytelen(), and u8_fromchar().
Referenced by Key_Console(), and Key_Message().
|
static |
Definition at line 1639 of file keys.c.
References b, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), dp_strlcat, i, Key_SetBinding(), Key_StringToKeynum(), keybindings, MAX_INPUTLINE, and MAX_KEYS.
Referenced by Key_Init().
|
static |
Definition at line 1633 of file keys.c.
References Key_PrintBindList().
Referenced by Key_Init().
Definition at line 668 of file keys.c.
References chat_buffer, and key_line.
Referenced by Key_Console(), Key_Init(), Key_Message(), and Key_Parse_CommonKeys().
|
static |
Definition at line 1103 of file keys.c.
References ca_disconnected, Cbuf_AddText(), Cbuf_InsertText(), CF_CLIENT, CF_SERVER, CL_UpdateScreen(), cls, cmd(), con_backscroll, con_textsize, Cvar_SetValueQuick(), Cvar_VariableDefString(), cvars_all, cvar_t::integer, K_ALT, K_CTRL, K_DOWNARROW, K_ENTER, K_KP_DOWNARROW, K_KP_ENTER, K_KP_INS, K_KP_MINUS, K_KP_PGDN, K_KP_PGUP, K_KP_PLUS, K_KP_UPARROW, K_MWHEELDOWN, K_MWHEELUP, K_PGDN, K_PGUP, K_UPARROW, Key_AddChar(), Key_ClearEditLine(), Key_Convert_NumPadKey(), Key_History_Down(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_First(), Key_History_Last(), Key_History_Push(), Key_History_Up(), key_line, key_linepos, Key_Parse_CommonKeys(), keydown, KM_CTRL, KM_CTRL_SHIFT, KM_NONE, KM_SHIFT, client_static_t::state, and vid_conheight.
Referenced by Key_Event().
Definition at line 1080 of file keys.c.
References K_KP_5, K_KP_DEL, K_KP_DOWNARROW, K_KP_END, K_KP_HOME, K_KP_INS, K_KP_LEFTARROW, K_KP_MINUS, K_KP_PGDN, K_KP_PGUP, K_KP_PLUS, K_KP_RIGHTARROW, K_KP_SLASH, and K_KP_UPARROW.
Referenced by Key_Console(), and Key_Message().
Definition at line 1836 of file keys.c.
References Cbuf_AddText(), Cbuf_InsertText(), CL_Video_KeyEvent(), cl_videoplaying, CL_VM_InputEvent(), cmd(), cmd_local, con_closeontoggleconsole, Con_DPrintf(), Con_Printf(), Con_ToggleConsole_f(), developer_insane, events_blocked, GAME_BLOODOMNICIDE, gamemode, cvar_t::integer, K_ESCAPE, K_F1, K_F12, K_SHIFT, key_bmap, key_bmap2, Key_Console(), key_console, key_consoleactive, KEY_CONSOLEACTIVE_FORCED, KEY_CONSOLEACTIVE_USER, key_dest, Key_EventQueue_Add(), key_game, key_linepos, key_menu, key_menu_grabbed, Key_Message(), key_message, key_void, keybindings, keydown, MAX_KEYS, min, MR_KeyEvent, MR_ToggleMenu, STRING_COLOR_TAG, strlen(), Sys_CheckParm(), tbl_keyascii, tbl_keydest, and va().
Referenced by Key_EventQueue_Unblock(), Key_ReleaseAll(), Sys_SDL_HandleEvents(), VID_KeyEventForButton(), VID_TouchscreenArea(), and VID_TouchscreenCursor().
Definition at line 1808 of file keys.c.
References eventqueueitem_t::ascii, eventqueueitem_t::down, eventqueue, eventqueue_idx, and eventqueueitem_t::key.
Referenced by Key_Event().
Definition at line 1819 of file keys.c.
References events_blocked.
Definition at line 1825 of file keys.c.
References eventqueue, eventqueue_idx, events_blocked, i, and Key_Event().
Definition at line 1760 of file keys.c.
References b, count, Key_GetBind(), MAX_BINDMAPS, and MAX_KEYS.
Referenced by M_Keys_Draw(), M_Keys_Key(), and VM_findkeysforcommand().
Definition at line 1740 of file keys.c.
References key_bmap, key_bmap2, keybindings, MAX_BINDMAPS, MAX_KEYS, and NULL.
Referenced by Key_FindKeysForCommand(), and VM_getkeybind().
Definition at line 163 of file keys.c.
References ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, history, history_line, history_savedline, int(), Key_History_Get_foundCommand(), key_line, key_linepos, and strlen().
Referenced by Key_Console().
|
static |
Definition at line 300 of file keys.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), ConBuffer_Clear(), ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, HIST_MAXLINES, history, i, NULL, strlen(), and va().
Referenced by Key_Init().
Definition at line 278 of file keys.c.
References Con_Printf(), ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, count, HIST_MAXLINES, history, history_line, i, key_line, matchpattern_with_separator(), strlen(), and va().
Referenced by Key_Console().
Definition at line 211 of file keys.c.
References Con_Printf(), ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, HIST_MAXLINES, history, history_line, history_matchfound, history_savedline, history_searchstring, i, key_line, matchpattern_with_separator(), strlen(), and va().
Referenced by Key_Console().
Definition at line 246 of file keys.c.
References Con_Printf(), ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, HIST_MAXLINES, history, history_line, history_matchfound, history_searchstring, i, key_line, matchpattern_with_separator(), strlen(), and va().
Referenced by Key_Console().
Definition at line 185 of file keys.c.
References ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, history, history_line, history_savedline, int(), key_line, key_linepos, and strlen().
Referenced by Key_Console().
Definition at line 128 of file keys.c.
References ConBuffer_GetLine(), dp_strlcpy, history, history_line, history_matchfound, int(), key_line, key_linepos, and strlen().
Referenced by Key_History_Down(), and Key_History_Up().
Definition at line 50 of file keys.c.
References buf, ConBuffer_AddLine(), ConBuffer_Init(), FS_Close(), FS_Getc(), FS_OpenRealFile(), HIST_MAXLINES, HIST_TEXTSIZE, history, history_line, MAX_INPUTLINE, and zonemempool.
Referenced by Key_Init().
Definition at line 198 of file keys.c.
References ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, history, history_line, history_savedline, int(), key_line, key_linepos, and strlen().
Referenced by Key_Console().
Definition at line 114 of file keys.c.
References Con_Printf(), ConBuffer_AddLine(), history, history_line, history_matchfound, key_line, and strlen().
Referenced by Key_Console().
Definition at line 93 of file keys.c.
References CON_ERROR, Con_Print(), ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, ConBuffer_Shutdown(), FS_Close(), FS_OpenRealFile(), FS_Printf(), history, and i.
Referenced by Key_Shutdown().
Definition at line 138 of file keys.c.
References ConBuffer_GetLine(), CONBUFFER_LINES_COUNT, dp_strlcpy, history, history_line, history_savedline, int(), Key_History_Get_foundCommand(), key_line, key_linepos, and strlen().
Referenced by Key_Console().
|
static |
Definition at line 1484 of file keys.c.
References b, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), dp_strlcat, i, Key_SetBinding(), Key_StringToKeynum(), keybindings, MAX_BINDMAPS, MAX_INPUTLINE, MAX_KEYS, and NULL.
Referenced by Key_Init().
|
static |
Definition at line 1611 of file keys.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), Key_PrintBindList(), MAX_BINDMAPS, and NULL.
Referenced by Key_Init().
|
static |
Definition at line 1529 of file keys.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), key_bmap, key_bmap2, MAX_BINDMAPS, and NULL.
Referenced by Key_Init().
|
static |
Definition at line 1457 of file keys.c.
References b, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), Key_SetBinding(), Key_StringToKeynum(), MAX_BINDMAPS, and NULL.
Referenced by Key_Init().
Definition at line 1710 of file keys.c.
References CF_CLIENT, Cmd_AddCommand(), con_closeontoggleconsole, Cvar_RegisterVariable(), Key_Bind_f(), Key_BindList_f(), Key_ClearEditLine(), Key_History_f(), Key_History_Init(), Key_In_Bind_f(), Key_In_BindList_f(), Key_In_Bindmap_f(), Key_In_Unbind_f(), key_linepos, Key_ReleaseAll_f(), Key_Unbind_f(), and Key_Unbindall_f().
Referenced by CL_Init().
const char * Key_KeynumToString | ( | int | keynum, |
char * | tinystr, | ||
size_t | tinystrlength ) |
Definition at line 1383 of file keys.c.
References keynames, keyname_t::keynum, keyname_t::name, and u8_fromchar().
Referenced by Key_PrintBindList(), Key_WriteBindings(), M_Keys_Draw(), M_Keys_Key(), and VM_keynumtostring().
|
static |
Definition at line 1301 of file keys.c.
References chat_buffer, chat_bufferpos, chat_mode, CL_ForwardToServer(), cmd(), Cmd_ExecuteString(), cvar_t::integer, K_ENTER, K_ESCAPE, K_KP_ENTER, Key_AddChar(), Key_ClearEditLine(), Key_Convert_NumPadKey(), key_dest, key_game, Key_Parse_CommonKeys(), src_local, strlen(), utf8_enable, and va().
Referenced by Key_Event().
int Key_Parse_CommonKeys | ( | cmd_state_t * | cmd, |
qbool | is_console, | ||
int | key, | ||
int | unicode ) |
Definition at line 750 of file keys.c.
References CF_CLIENT, CF_SERVER, chat_buffer, chat_bufferpos, cmd(), con_backscroll, Con_CompleteCommandLine(), Con_Printf(), CON_TEXTSIZE, cvar(), Cvar_VariableString(), cvars_all, dp_strlcpy, i, int(), K_BACKSPACE, K_DEL, K_END, K_HOME, K_INS, K_KP_DEL, K_KP_END, K_KP_HOME, K_KP_INS, K_KP_LEFTARROW, K_KP_RIGHTARROW, K_LEFTARROW, K_RIGHTARROW, K_TAB, Key_ClearEditLine(), key_insert, key_line, key_linepos, KM_CTRL, KM_NONE, KM_SHIFT, MAX_INPUTLINE, STRING_COLOR_RGB_TAG_CHAR, STRING_COLOR_TAG, strlen(), Sys_SDL_GetClipboardData(), u8_bytelen(), u8_charidx(), u8_prevbyte(), and Z_Free.
Referenced by Key_Console(), and Key_Message().
Definition at line 1589 of file keys.c.
References Cmd_QuoteString(), Con_Printf(), i, int(), Key_KeynumToString(), keybindings, MAX_INPUTLINE, and TINYSTR_LEN.
Referenced by Key_BindList_f(), and Key_In_BindList_f().
Definition at line 2075 of file keys.c.
References eventqueue_idx, Key_Event(), keydown, and MAX_KEYS.
Referenced by Key_ReleaseAll_f(), VID_Restart_f(), and VID_Start().
void Key_ReleaseAll_f | ( | cmd_state_t * | cmd | ) |
Definition at line 1409 of file keys.c.
References keybindings, MAX_BINDMAPS, MAX_KEYS, NULL, strlen(), Z_Free, and Z_Malloc.
Referenced by Key_Bind_f(), Key_In_Bind_f(), Key_In_Unbind_f(), Key_Unbind_f(), Key_Unbindall_f(), M_UnbindCommand(), and VM_setkeybind().
Definition at line 1443 of file keys.c.
References key_bmap, key_bmap2, and MAX_BINDMAPS.
Referenced by VM_setbindmaps().
Definition at line 1735 of file keys.c.
References Key_History_Shutdown().
Referenced by CL_Shutdown().
int Key_StringToKeynum | ( | const char * | str | ) |
Definition at line 1354 of file keys.c.
References int(), keynames, keyname_t::keynum, keyname_t::name, and u8_getnchar.
Referenced by Key_Bind_f(), Key_In_Bind_f(), Key_In_Unbind_f(), Key_Unbind_f(), and VM_stringtokeynum().
|
static |
Definition at line 1558 of file keys.c.
References b, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), Key_SetBinding(), and Key_StringToKeynum().
Referenced by Key_Init().
|
static |
Definition at line 1578 of file keys.c.
References i, int(), Key_SetBinding(), keybindings, and MAX_BINDMAPS.
Referenced by Key_Init().
void Key_WriteBindings | ( | qfile_t * | f | ) |
Definition at line 1681 of file keys.c.
References Cmd_QuoteString(), f, FS_Printf(), i, int(), Key_KeynumToString(), keybindings, MAX_BINDMAPS, MAX_INPUTLINE, and TINYSTR_LEN.
Referenced by Host_SaveConfig().
char chat_buffer[MAX_INPUTLINE] |
Definition at line 700 of file keys.c.
Referenced by Con_CompleteCommandLine(), Con_DrawInput(), Con_MsgCmdMode(), Key_AddChar(), Key_ClearEditLine(), Key_Message(), and Key_Parse_CommonKeys().
int chat_bufferpos = 0 |
Definition at line 701 of file keys.c.
Referenced by Con_CompleteCommandLine(), Con_DrawInput(), Con_DrawNotify(), Con_MsgCmdMode(), Key_AddChar(), Key_Message(), and Key_Parse_CommonKeys().
signed char chat_mode |
Definition at line 699 of file keys.c.
Referenced by Con_DrawInput(), Con_MsgCmdMode(), and Key_Message().
cvar_t con_closeontoggleconsole = {CF_CLIENT | CF_ARCHIVE, "con_closeontoggleconsole","1", "allows toggleconsole binds to close the console as well; when set to 2, this even works when not at the start of the line in console input; when set to 3, this works even if the toggleconsole key is the color tag"} |
Definition at line 28 of file keys.c.
Referenced by Key_Event(), and Key_Init().
|
extern |
Definition at line 57 of file console.c.
Referenced by Con_CheckResize(), Con_DrawConsole(), Con_DrawConsoleLine(), Con_Init(), Con_LineHeight(), and Key_Console().
|
static |
Definition at line 1805 of file keys.c.
Referenced by Key_EventQueue_Add(), and Key_EventQueue_Unblock().
|
static |
Definition at line 1806 of file keys.c.
Referenced by Key_EventQueue_Add(), Key_EventQueue_Unblock(), and Key_ReleaseAll().
|
static |
Definition at line 1804 of file keys.c.
Referenced by Key_Event(), Key_EventQueue_Block(), and Key_EventQueue_Unblock().
conbuffer_t history |
Definition at line 45 of file keys.c.
Referenced by CL_FinishTimeDemo(), Key_History_Down(), Key_History_f(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_First(), Key_History_Get_foundCommand(), Key_History_Init(), Key_History_Last(), Key_History_Push(), Key_History_Shutdown(), and Key_History_Up().
int history_line |
Definition at line 41 of file keys.c.
Referenced by Key_History_Down(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_First(), Key_History_Get_foundCommand(), Key_History_Init(), Key_History_Last(), Key_History_Push(), and Key_History_Up().
Definition at line 44 of file keys.c.
Referenced by Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_Get_foundCommand(), and Key_History_Push().
char history_savedline[MAX_INPUTLINE] |
Definition at line 42 of file keys.c.
Referenced by Key_History_Down(), Key_History_Find_Backwards(), Key_History_First(), Key_History_Last(), and Key_History_Up().
char history_searchstring[MAX_INPUTLINE] |
Definition at line 43 of file keys.c.
Referenced by Key_History_Find_Backwards(), and Key_History_Find_Forwards().
|
static |
Definition at line 326 of file keys.c.
Referenced by Key_Event(), Key_GetBind(), Key_GetBindMap(), Key_In_Bindmap_f(), and Key_SetBindMap().
|
static |
Definition at line 326 of file keys.c.
Referenced by Key_Event(), Key_GetBind(), Key_GetBindMap(), Key_In_Bindmap_f(), and Key_SetBindMap().
int key_consoleactive |
Definition at line 38 of file keys.c.
Referenced by CL_Input(), CL_SendMove(), CL_TimeDemo_f(), Con_DrawInput(), Con_ToggleConsole_f(), IN_Move(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), Key_Event(), SCR_DrawConsole(), SCR_DrawScreen(), SCR_SetUpToDrawConsole(), Sys_SDL_HandleEvents(), VID_ApplyDisplayMode_c(), VM_CL_getmousepos(), and VM_M_getmousepos().
keydest_t key_dest |
Definition at line 37 of file keys.c.
Referenced by CL_Input(), CL_SendMove(), CL_TimeDemo_f(), CL_ToggleMenu_Hook(), CL_VM_DrawHud(), CL_VM_UpdateView(), Con_DrawNotify(), Con_MsgCmdMode(), IN_Move(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), Key_Event(), Key_Message(), M_Demo_Key(), M_Draw(), M_Load_Key(), M_Main_Key(), M_Menu_Credits_f(), M_Menu_Demos_f(), M_Menu_GameOptions_f(), M_Menu_Help_f(), M_Menu_Keys_f(), M_Menu_LanConfig_f(), M_Menu_Load_f(), M_Menu_Main_f(), M_Menu_ModList_f(), M_Menu_MultiPlayer_f(), M_Menu_Options_ColorControl_f(), M_Menu_Options_Effects_f(), M_Menu_Options_f(), M_Menu_Options_Graphics_f(), M_Menu_Quit_f(), M_Menu_Reset_f(), M_Menu_Save_f(), M_Menu_ServerList_f(), M_Menu_Setup_f(), M_Menu_SinglePlayer_f(), M_Menu_Transfusion_Episode_f(), M_Menu_Transfusion_Skill_f(), M_Menu_Video_f(), M_Options_Key(), M_Quit_Key(), M_Save_Key(), M_Shutdown(), M_SinglePlayer_Key(), M_ToggleMenu(), M_Transfusion_Skill_Key(), MP_Shutdown(), MVM_error_cmd(), NetConn_ClientParsePacket(), NetConn_ConnectionEstablished(), SCR_CheckDrawCenterString(), SCR_DrawScreen(), SCR_SetUpToDrawConsole(), Sys_SDL_HandleEvents(), VID_ApplyDisplayMode_c(), VM_CL_getmousepos(), VM_M_getkeydest(), VM_M_getmousepos(), and VM_M_setkeydest().
Definition at line 36 of file keys.c.
Referenced by Con_DrawInput(), Key_AddChar(), and Key_Parse_CommonKeys().
char key_line[MAX_INPUTLINE] |
Definition at line 34 of file keys.c.
Referenced by Con_CompleteCommandLine(), Con_DrawInput(), Key_AddChar(), Key_ClearEditLine(), Key_Console(), Key_History_Down(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_First(), Key_History_Get_foundCommand(), Key_History_Last(), Key_History_Push(), Key_History_Up(), and Key_Parse_CommonKeys().
int key_linepos |
Definition at line 35 of file keys.c.
Referenced by Con_CompleteCommandLine(), Con_DrawInput(), Key_AddChar(), Key_Console(), Key_Event(), Key_History_Down(), Key_History_First(), Key_History_Get_foundCommand(), Key_History_Last(), Key_History_Up(), Key_Init(), and Key_Parse_CommonKeys().
char* keybindings[MAX_BINDMAPS][MAX_KEYS] |
Definition at line 39 of file keys.c.
Referenced by Key_Bind_f(), Key_Event(), Key_GetBind(), Key_In_Bind_f(), Key_PrintBindList(), Key_SetBinding(), Key_Unbindall_f(), Key_WriteBindings(), and M_UnbindCommand().
|
static |
Definition at line 327 of file keys.c.
Referenced by Key_Console(), Key_Event(), and Key_ReleaseAll().
|
static |
Definition at line 336 of file keys.c.
Referenced by Key_KeynumToString(), and Key_StringToKeynum().
|
static |
Definition at line 1794 of file keys.c.
Referenced by Key_Event().
Definition at line 1795 of file keys.c.
Referenced by Key_Event().