|
UFO: Alien Invasion
|
Client input handling - bindable commands. More...
#include "../client.h"#include "cl_input.h"#include "cl_keys.h"#include "cl_joystick.h"#include "../battlescape/cl_localentity.h"#include "../battlescape/cl_hud.h"#include "../cl_console.h"#include "../cl_screen.h"#include "../battlescape/cl_actor.h"#include "../battlescape/cl_view.h"#include "../battlescape/cl_parse.h"#include "../ui/ui_main.h"#include "../ui/ui_input.h"#include "../ui/node/ui_node_abstractnode.h"#include "../../shared/utf8.h"#include "../../common/tracing.h"#include "../renderer/r_misc.h"
Go to the source code of this file.
Data Structures | |
| struct | kbutton_t |
| struct | cursorChange_t |
Macros | |
| #define | MAX_KEYQ 64 |
| #define | SCROLL_BORDER 4 |
| #define | MOUSE_YAW_SCALE 0.1 |
| #define | MOUSE_PITCH_SCALE 0.1 |
Enumerations | |
| enum | { BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_X = VID_NORM_WIDTH / 10 , BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_Y = VID_NORM_HEIGHT / 10 } |
Variables | |
| struct { | |
| unsigned int key | |
| unsigned short unicode | |
| int down | |
| } | keyq [MAX_KEYQ] |
| static int | keyq_head = 0 |
| static int | keyq_tail = 0 |
| static cvar_t * | in_debug |
| cvar_t * | cl_isometric |
| mouseSpace_t | mouseSpace |
| int | mousePosX |
| int | mousePosY |
| static int | oldMousePosX |
| static int | oldMousePosY |
| static int | battlescapeMouseDraggingX |
| static int | battlescapeMouseDraggingY |
| static bool | battlescapeMouseDraggingPossible |
| static bool | battlescapeMouseDraggingActive |
| static kbutton_t | in_turnleft |
| static kbutton_t | in_turnright |
| static kbutton_t | in_shiftleft |
| static kbutton_t | in_shiftright |
| static kbutton_t | in_shiftup |
| static kbutton_t | in_shiftdown |
| static kbutton_t | in_zoomin |
| static kbutton_t | in_zoomout |
| static kbutton_t | in_turnup |
| static kbutton_t | in_turndown |
| static kbutton_t | in_pantilt |
| static cursorChange_t | cursorChange |
Client input handling - bindable commands.
When a key event issues a button command (+forward, +attack, etc), it appends its key number as a parameter to the command so it can be matched up with the release.
Key_Event(unsigned int key, unsigned short unicode, bool down, unsigned time);
+mlook src time
Definition in file cl_input.cpp.
| #define MAX_KEYQ 64 |
Definition at line 61 of file cl_input.cpp.
Referenced by IN_EventEnqueue(), and IN_SendKeyEvents().
| #define MOUSE_PITCH_SCALE 0.1 |
Definition at line 537 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState().
| #define MOUSE_YAW_SCALE 0.1 |
Definition at line 536 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState().
| #define SCROLL_BORDER 4 |
Definition at line 535 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState().
| anonymous enum |
| Enumerator | |
|---|---|
| BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_X | |
| BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_Y | |
Definition at line 82 of file cl_input.cpp.
Middle mouse click.
Definition at line 420 of file cl_input.cpp.
References CL_OnBattlescape(), IN_KeyDown(), and in_pantilt.
Referenced by IN_Init().
Definition at line 427 of file cl_input.cpp.
References CL_ActorActionMouse(), IN_GetMouseSpace, IN_KeyUp(), in_pantilt, IN_SetMouseSpace(), MS_NULL, and MS_UI.
Referenced by IN_Init().
| float CL_GetKeyMouseState | ( | int | dir | ) |
Definition at line 542 of file cl_input.cpp.
References in_pantilt, in_shiftdown, in_shiftleft, in_shiftright, in_shiftup, in_turndown, in_turnleft, in_turnright, in_turnup, in_zoomin, in_zoomout, MOUSE_PITCH_SCALE, MOUSE_YAW_SCALE, mousePosX, mousePosY, oldMousePosX, oldMousePosY, SCROLL_BORDER, STATE_FORWARD, STATE_RIGHT, STATE_ROT, STATE_TILT, STATE_ZOOM, and viddef.
Referenced by CL_CameraMove().
Definition at line 458 of file cl_input.cpp.
References CL_BattlescapeRunning(), and UI_PushWindow().
Referenced by IN_Init().
Definition at line 468 of file cl_input.cpp.
References CL_BattlescapeRunning(), and UI_CloseWindow().
Referenced by IN_Init().
Left mouse button is hit in menu.
Definition at line 518 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE1, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by IN_Init().
Left mouse button is freed in menu.
Definition at line 528 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE1, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by IN_Init().
Switch one worldlevel down.
Definition at line 345 of file cl_input.cpp.
References CL_OnBattlescape(), cl_worldlevel, and Cvar_SetValue().
Referenced by IN_Init().
Switch one worldlevel up.
Definition at line 335 of file cl_input.cpp.
References cl, CL_OnBattlescape(), cl_worldlevel, and Cvar_SetValue().
Referenced by IN_Init().
Middle mouse button is hit in menu.
Definition at line 498 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE3, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by IN_Init().
Middle mouse button is freed in menu.
Definition at line 508 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE3, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by IN_Init().
Simulate press of a key with a command.
Definition at line 1030 of file cl_input.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), IN_EventEnqueue(), and Key_StringToKeynum().
Referenced by IN_Init().
Definition at line 403 of file cl_input.cpp.
References BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_X, BATTLESCAPE_MOUSE_DRAGGING_TRIGGER_Y, battlescapeMouseDraggingActive, battlescapeMouseDraggingPossible, battlescapeMouseDraggingX, battlescapeMouseDraggingY, CL_BattlescapeMouseDragging(), mousePosX, and mousePosY.
Referenced by IN_Frame().
Right mouse button is hit in menu.
Definition at line 478 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE2, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by IN_Init().
Right mouse button is freed in menu.
Definition at line 488 of file cl_input.cpp.
References IN_GetMouseSpace, K_MOUSE2, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by IN_Init().
Left mouse click.
Definition at line 375 of file cl_input.cpp.
References battlescapeMouseDraggingActive, battlescapeMouseDraggingPossible, battlescapeMouseDraggingX, battlescapeMouseDraggingY, CL_BattlescapeRunning(), CL_InitBattlescapeMouseDragging(), IN_GetMouseSpace, mousePosX, mousePosY, and MS_UI.
Referenced by IN_Init().
Definition at line 386 of file cl_input.cpp.
References battlescapeMouseDraggingActive, battlescapeMouseDraggingPossible, CL_ActorSelectMouse(), IN_GetMouseSpace, IN_SetMouseSpace(), MS_NULL, MS_UI, and MS_WORLD.
Referenced by IN_Init().
Turn button is hit.
Definition at line 440 of file cl_input.cpp.
References CL_ActorTurnMouse(), IN_GetMouseSpace, MS_UI, and MS_WORLD.
Referenced by IN_Init().
Definition at line 448 of file cl_input.cpp.
References IN_GetMouseSpace, IN_SetMouseSpace(), MS_NULL, and MS_UI.
Referenced by IN_Init().
Definition at line 357 of file cl_input.cpp.
References CL_CameraZoomOut().
Referenced by IN_Init().
Definition at line 832 of file cl_input.cpp.
References Com_Printf(), in_debug, Key_KeynumToString(), keyDown, keyq, keyq_head, and MAX_KEYQ.
Referenced by CL_PressKey_f(), IN_Frame(), and IN_JoystickMove().
Handle input events like key presses and joystick movement as well as window events.
Definition at line 859 of file cl_input.cpp.
References CL_ProcessMouseDragging(), cls, Cmd_ExecuteString(), Com_Printf(), Con_ToggleConsole_f(), Cvar_SetValue(), IN_EventEnqueue(), IN_JoystickMove(), IN_Parse(), IN_PrintKey(), IN_ToggleFullscreen(), IN_TranslateKey(), K_AUX1, K_MOUSE1, K_MOUSE2, K_MOUSE3, K_MOUSE4, K_MOUSE5, K_MWHEELDOWN, K_MWHEELUP, key, mousePosX, mousePosY, oldMousePosX, oldMousePosY, UI_ReleaseInput(), unicode, UTF8_next(), vid_fullscreen, vid_grabmouse, vid_mode, and viddef.
Referenced by CL_Frame().
Definition at line 1067 of file cl_input.cpp.
References CL_ActionDown_f(), CL_ActionUp_f(), CL_HudRadarDown_f(), CL_HudRadarUp_f(), cl_isometric, CL_LeftClickDown_f(), CL_LeftClickUp_f(), CL_LevelDown_f(), CL_LevelUp_f(), CL_MiddleClickDown_f(), CL_MiddleClickUp_f(), CL_PressKey_f(), CL_RightClickDown_f(), CL_RightClickUp_f(), CL_SelectDown_f(), CL_SelectUp_f(), CL_TurnDown_f(), CL_TurnUp_f(), CL_WheelDown_f(), CL_WheelUp_f(), CL_ZoomInQuant_f(), CL_ZoomOutQuant_f(), Cmd_AddCommand(), Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), in_debug, IN_PanTiltDown_f(), IN_PanTiltUp_f(), IN_ShiftDownDown_f(), IN_ShiftDownUp_f(), IN_ShiftLeftDown_f(), IN_ShiftLeftDownDown_f(), IN_ShiftLeftDownUp_f(), IN_ShiftLeftUp_f(), IN_ShiftLeftUpDown_f(), IN_ShiftLeftUpUp_f(), IN_ShiftRightDown_f(), IN_ShiftRightDownDown_f(), IN_ShiftRightDownUp_f(), IN_ShiftRightUp_f(), IN_ShiftRightUpDown_f(), IN_ShiftRightUpUp_f(), IN_ShiftUpDown_f(), IN_ShiftUpUp_f(), IN_StartupJoystick(), IN_TurnDownDown_f(), IN_TurnDownUp_f(), IN_TurnLeftDown_f(), IN_TurnLeftUp_f(), IN_TurnRightDown_f(), IN_TurnRightUp_f(), IN_TurnUpDown_f(), IN_TurnUpUp_f(), IN_ZoomInDown_f(), IN_ZoomInUp_f(), IN_ZoomOutDown_f(), IN_ZoomOutUp_f(), mousePosX, mousePosY, and N_.
Referenced by CL_InitLocal().
Handles the catch of a kbutton_t state.
Definition at line 113 of file cl_input.cpp.
References CL_Milliseconds(), Cmd_Argv(), Com_Printf(), kbutton_t::down, kbutton_t::downtime, and kbutton_t::state.
Referenced by CL_ActionDown_f(), IN_PanTiltDown_f(), IN_ShiftDownDown_f(), IN_ShiftLeftDown_f(), IN_ShiftLeftDownDown_f(), IN_ShiftLeftUpDown_f(), IN_ShiftRightDown_f(), IN_ShiftRightDownDown_f(), IN_ShiftRightUpDown_f(), IN_ShiftUpDown_f(), IN_TurnDownDown_f(), IN_TurnLeftDown_f(), IN_TurnRightDown_f(), IN_TurnUpDown_f(), IN_ZoomInDown_f(), and IN_ZoomOutDown_f().
Handles the release of a kbutton_t state.
| [in,out] | b | the button state to |
Definition at line 159 of file cl_input.cpp.
References Cmd_Argv(), kbutton_t::down, kbutton_t::downtime, kbutton_t::msec, and kbutton_t::state.
Referenced by CL_ActionUp_f(), IN_PanTiltUp_f(), IN_ShiftDownUp_f(), IN_ShiftLeftDownUp_f(), IN_ShiftLeftUp_f(), IN_ShiftLeftUpUp_f(), IN_ShiftRightDownUp_f(), IN_ShiftRightUp_f(), IN_ShiftRightUpUp_f(), IN_ShiftUpUp_f(), IN_TurnDownUp_f(), IN_TurnLeftUp_f(), IN_TurnRightUp_f(), IN_TurnUpUp_f(), IN_ZoomInUp_f(), and IN_ZoomOutUp_f().
Definition at line 232 of file cl_input.cpp.
References IN_GetMouseSpace, IN_KeyDown(), in_pantilt, and MS_WORLD.
Referenced by IN_Init().
Definition at line 238 of file cl_input.cpp.
References IN_KeyUp(), and in_pantilt.
Referenced by IN_Init().
Called every frame to parse the input.
Definition at line 580 of file cl_input.cpp.
References ca_active, CL_ActorMouseTrace(), cls, IN_SetMouseSpace(), MS_NULL, MS_UI, MS_WORLD, UI_IsMouseOnWindow(), and viddef.
Referenced by IN_Frame().
Debug function to print sdl key events.
Definition at line 605 of file cl_input.cpp.
References Com_Printf(), down, in_debug, and unicode.
Referenced by IN_Frame().
Definition at line 1139 of file cl_input.cpp.
References CL_Milliseconds(), down, key, Key_Event(), keyq, keyq_head, keyq_tail, MAX_KEYQ, and unicode.
Referenced by CL_SendCommand().
| void IN_SetMouseSpace | ( | mouseSpace_t | mspace | ) |
Definition at line 1050 of file cl_input.cpp.
References cursorChange, Cvar_GetValue(), mouseSpace, MS_NULL, and SCR_ChangeCursor().
Referenced by CL_ActionUp_f(), CL_ActorUseHeadgear_f(), CL_SelectUp_f(), CL_TurnUp_f(), and IN_Parse().
Definition at line 306 of file cl_input.cpp.
References IN_KeyDown(), and in_shiftdown.
Referenced by IN_Init().
Definition at line 310 of file cl_input.cpp.
References IN_KeyUp(), and in_shiftdown.
Referenced by IN_Init().
Definition at line 242 of file cl_input.cpp.
References IN_KeyDown(), and in_shiftleft.
Referenced by IN_Init().
Definition at line 260 of file cl_input.cpp.
References IN_KeyDown(), in_shiftdown, and in_shiftleft.
Referenced by IN_Init().
Definition at line 265 of file cl_input.cpp.
References IN_KeyUp(), in_shiftdown, and in_shiftleft.
Referenced by IN_Init().
Definition at line 246 of file cl_input.cpp.
References IN_KeyUp(), and in_shiftleft.
Referenced by IN_Init().
Definition at line 250 of file cl_input.cpp.
References IN_KeyDown(), in_shiftleft, and in_shiftup.
Referenced by IN_Init().
Definition at line 255 of file cl_input.cpp.
References IN_KeyUp(), in_shiftleft, and in_shiftup.
Referenced by IN_Init().
Definition at line 270 of file cl_input.cpp.
References IN_KeyDown(), and in_shiftright.
Referenced by IN_Init().
Definition at line 288 of file cl_input.cpp.
References IN_KeyDown(), in_shiftdown, and in_shiftright.
Referenced by IN_Init().
Definition at line 293 of file cl_input.cpp.
References IN_KeyUp(), in_shiftdown, and in_shiftright.
Referenced by IN_Init().
Definition at line 274 of file cl_input.cpp.
References IN_KeyUp(), and in_shiftright.
Referenced by IN_Init().
Definition at line 278 of file cl_input.cpp.
References IN_KeyDown(), in_shiftright, and in_shiftup.
Referenced by IN_Init().
Definition at line 283 of file cl_input.cpp.
References IN_KeyUp(), in_shiftright, and in_shiftup.
Referenced by IN_Init().
Definition at line 298 of file cl_input.cpp.
References IN_KeyDown(), and in_shiftup.
Referenced by IN_Init().
Definition at line 302 of file cl_input.cpp.
References IN_KeyUp(), and in_shiftup.
Referenced by IN_Init().
|
static |
Translate the keys to ufo keys.
Definition at line 622 of file cl_input.cpp.
References K_ALT, K_BACKSPACE, K_CAPSLOCK, K_CTRL, K_DEL, K_DOWNARROW, K_END, K_ENTER, K_ESCAPE, K_F1, K_F10, K_F11, K_F12, K_F13, K_F14, K_F15, K_F2, K_F3, K_F4, K_F5, K_F6, K_F7, K_F8, K_F9, K_HELP, K_HOME, K_INS, K_KP_5, K_KP_DEL, K_KP_DOWNARROW, K_KP_END, K_KP_ENTER, K_KP_HOME, K_KP_INS, K_KP_LEFTARROW, K_KP_MINUS, K_KP_MULTIPLY, K_KP_PGDN, K_KP_PGUP, K_KP_PLUS, K_KP_RIGHTARROW, K_KP_SLASH, K_KP_UPARROW, K_LEFTARROW, K_MENU, K_MODE, K_PAUSE, K_PGDN, K_PGUP, K_POWER, K_PRINT, K_RIGHTARROW, K_SCROLLOCK, K_SHIFT, K_SPACE, K_SYSREQ, K_TAB, K_UNDO, K_UPARROW, Key_IsNumlock(), and UTF8_encoded_len().
Referenced by IN_Frame().
Definition at line 224 of file cl_input.cpp.
References IN_KeyDown(), and in_turndown.
Referenced by IN_Init().
Definition at line 228 of file cl_input.cpp.
References IN_KeyUp(), and in_turndown.
Referenced by IN_Init().
Definition at line 200 of file cl_input.cpp.
References IN_KeyDown(), and in_turnleft.
Referenced by IN_Init().
Definition at line 204 of file cl_input.cpp.
References IN_KeyUp(), and in_turnleft.
Referenced by IN_Init().
Definition at line 208 of file cl_input.cpp.
References IN_KeyDown(), and in_turnright.
Referenced by IN_Init().
Definition at line 212 of file cl_input.cpp.
References IN_KeyUp(), and in_turnright.
Referenced by IN_Init().
Definition at line 216 of file cl_input.cpp.
References IN_KeyDown(), and in_turnup.
Referenced by IN_Init().
Definition at line 220 of file cl_input.cpp.
References IN_KeyUp(), and in_turnup.
Referenced by IN_Init().
Definition at line 314 of file cl_input.cpp.
References IN_KeyDown(), and in_zoomin.
Referenced by IN_Init().
Definition at line 318 of file cl_input.cpp.
References IN_KeyUp(), and in_zoomin.
Referenced by IN_Init().
Definition at line 322 of file cl_input.cpp.
References IN_KeyDown(), and in_zoomout.
Referenced by IN_Init().
Definition at line 326 of file cl_input.cpp.
References IN_KeyUp(), and in_zoomout.
Referenced by IN_Init().
|
static |
Definition at line 81 of file cl_input.cpp.
Referenced by CL_ProcessMouseDragging(), CL_SelectDown_f(), and CL_SelectUp_f().
|
static |
Definition at line 81 of file cl_input.cpp.
Referenced by CL_ProcessMouseDragging(), CL_SelectDown_f(), and CL_SelectUp_f().
|
static |
Definition at line 79 of file cl_input.cpp.
Referenced by CL_ProcessMouseDragging(), and CL_SelectDown_f().
|
static |
Definition at line 80 of file cl_input.cpp.
Referenced by CL_ProcessMouseDragging(), and CL_SelectDown_f().
| cvar_t* cl_isometric |
Definition at line 73 of file cl_input.cpp.
Referenced by CL_CameraMove(), CL_GetWorldCoordsUnderMouse(), CL_ViewCalcFieldOfViewX(), IN_Init(), and SEQ_SetCamera().
|
static |
Definition at line 1048 of file cl_input.cpp.
Referenced by IN_SetMouseSpace().
| int down |
Definition at line 66 of file cl_input.cpp.
Referenced by Check_SidePointsDown(), IN_PrintKey(), IN_SendKeyEvents(), Key_Event(), uiGeoscapeNode::onScroll(), uiMaterialEditorNode::onScroll(), uiMessageListNode::onScroll(), uiOptionListNode::onScroll(), uiOptionTreeNode::onScroll(), uiSpinnerNode::onScroll(), uiTextNode::onScroll(), and uiSpinnerNode::step().
|
static |
Definition at line 72 of file cl_input.cpp.
Referenced by IN_EventEnqueue(), IN_Init(), and IN_PrintKey().
|
static |
Definition at line 104 of file cl_input.cpp.
Referenced by CL_ActionDown_f(), CL_ActionUp_f(), CL_GetKeyMouseState(), IN_PanTiltDown_f(), and IN_PanTiltUp_f().
|
static |
Definition at line 101 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ShiftDownDown_f(), IN_ShiftDownUp_f(), IN_ShiftLeftDownDown_f(), IN_ShiftLeftDownUp_f(), IN_ShiftRightDownDown_f(), and IN_ShiftRightDownUp_f().
|
static |
Definition at line 100 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ShiftLeftDown_f(), IN_ShiftLeftDownDown_f(), IN_ShiftLeftDownUp_f(), IN_ShiftLeftUp_f(), IN_ShiftLeftUpDown_f(), and IN_ShiftLeftUpUp_f().
|
static |
Definition at line 100 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ShiftRightDown_f(), IN_ShiftRightDownDown_f(), IN_ShiftRightDownUp_f(), IN_ShiftRightUp_f(), IN_ShiftRightUpDown_f(), and IN_ShiftRightUpUp_f().
|
static |
Definition at line 101 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ShiftLeftUpDown_f(), IN_ShiftLeftUpUp_f(), IN_ShiftRightUpDown_f(), IN_ShiftRightUpUp_f(), IN_ShiftUpDown_f(), and IN_ShiftUpUp_f().
|
static |
Definition at line 103 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_TurnDownDown_f(), and IN_TurnDownUp_f().
|
static |
Definition at line 100 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_TurnLeftDown_f(), and IN_TurnLeftUp_f().
|
static |
Definition at line 100 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_TurnRightDown_f(), and IN_TurnRightUp_f().
|
static |
Definition at line 103 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_TurnUpDown_f(), and IN_TurnUpUp_f().
|
static |
Definition at line 102 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ZoomInDown_f(), and IN_ZoomInUp_f().
|
static |
Definition at line 102 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_ZoomOutDown_f(), and IN_ZoomOutUp_f().
| unsigned int key |
Definition at line 64 of file cl_input.cpp.
Referenced by _find_bucket_entry(), AddEpair(), CL_ExecuteCallback(), CL_ParseMapParticle(), CL_RegisterCallback(), Com_ParseTerrainDefinition(), Com_SHA2Hmac(), CON_FlushIn(), default_hash(), ED_Check(), ED_ParseField(), FloatForKey(), GAME_CP_HandleBaseClick(), GetVectorForKey(), HASH_Get(), HASH_Insert(), HASH_Remove(), IN_Frame(), IN_SendKeyEvents(), Info_BoolForKey(), Info_IntegerForKey(), Info_Print(), Info_RemoveKey(), Info_SetValueForKey(), Info_SetValueForKeyAsInteger(), Info_ValueForKey(), Key_Console(), Key_Event(), Key_IsDown(), Key_IsMouseButton(), uiLocatedNode::onKeyPressed(), uiTextEntryNode::onKeyPressed(), uiLocatedNode::onKeyReleased(), ParseEpair(), ParseMapEntity(), SetKeyValue(), Sys_ConsoleInput(), Sys_TTYDeleteCharacter(), UI_CallHandler_OnLoad(), UI_ExecuteLuaEventScript_Key(), UI_KeyPressed(), UI_KeyPressedInWindow(), UI_KeyRelease(), UI_Node_KeyPressed(), UI_Node_KeyReleased(), UI_SetKeyBinding(), UI_SetKeyBindingEx(), UI_Tooltip(), UI_WindowNodeGetKeyBinding(), UI_WindowNodeRegisterKeyBinding(), UnparseEntities(), and ValueForKey().
| struct { ... } keyq[MAX_KEYQ] |
Referenced by IN_EventEnqueue(), and IN_SendKeyEvents().
|
static |
Definition at line 69 of file cl_input.cpp.
Referenced by IN_EventEnqueue(), and IN_SendKeyEvents().
|
static |
Definition at line 70 of file cl_input.cpp.
Referenced by IN_SendKeyEvents().
| int mousePosX |
Definition at line 76 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), CL_GetWorldCoordsUnderMouse(), CL_LeftClickDown_f(), CL_LeftClickUp_f(), CL_MiddleClickDown_f(), CL_MiddleClickUp_f(), CL_ProcessMouseDragging(), CL_RightClickDown_f(), CL_RightClickUp_f(), CL_SelectDown_f(), uiSpinnerNode::draw(), uiTabNode::draw(), uiVScrollbarNode::draw(), uiEditorNode::drawOverWindow(), HUD_DrawMouseCursorText(), HUD_UpdateCursor(), IN_Frame(), IN_Init(), IN_JoystickMove(), uiGeoscapeNode::onCapturedMouseMove(), uiContainerNode::onDndMove(), uiEditorNode::onMouseDown(), SCR_DrawCursor(), UI_CheckMouseMove(), UI_DNDDrop(), UI_DNDMouseMove(), UI_Draw(), UI_DrawCursor(), UI_DrawDragAndDrop(), and UI_PushDropDownWindow_f().
| int mousePosY |
Definition at line 76 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), CL_GetWorldCoordsUnderMouse(), CL_LeftClickDown_f(), CL_LeftClickUp_f(), CL_MiddleClickDown_f(), CL_MiddleClickUp_f(), CL_ProcessMouseDragging(), CL_RightClickDown_f(), CL_RightClickUp_f(), CL_SelectDown_f(), uiSpinnerNode::draw(), uiTabNode::draw(), uiVScrollbarNode::draw(), uiEditorNode::drawOverWindow(), HUD_DrawMouseCursorText(), HUD_UpdateCursor(), IN_Frame(), IN_Init(), IN_JoystickMove(), uiGeoscapeNode::onCapturedMouseMove(), uiContainerNode::onDndMove(), uiEditorNode::onMouseDown(), SCR_DrawCursor(), UI_CheckMouseMove(), UI_DNDDrop(), UI_DNDMouseMove(), UI_Draw(), UI_DrawCursor(), UI_DrawDragAndDrop(), UI_PushDropDownWindow_f(), and UI_VScrollbarNodeAction().
| mouseSpace_t mouseSpace |
Definition at line 75 of file cl_input.cpp.
Referenced by IN_SetMouseSpace().
|
static |
Definition at line 77 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_Frame(), uiGeoscapeNode::onCapturedMouseMove(), uiModelNode::onCapturedMouseMove(), uiModelNode::onMouseDown(), uiGeoscapeNode::onStartDragging(), uiGeoscapeNode::startMouseShifting(), UI_CheckMouseMove(), UI_DrawDragAndDrop(), and UI_InvalidateMouse().
|
static |
Definition at line 77 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_Frame(), uiGeoscapeNode::onCapturedMouseMove(), uiModelNode::onCapturedMouseMove(), uiModelNode::onMouseDown(), uiGeoscapeNode::onStartDragging(), uiGeoscapeNode::startMouseShifting(), UI_CheckMouseMove(), UI_DrawDragAndDrop(), and UI_InvalidateMouse().
| unsigned short unicode |
Definition at line 65 of file cl_input.cpp.
Referenced by IN_Frame(), IN_PrintKey(), IN_SendKeyEvents(), Key_Console(), Key_Event(), uiLocatedNode::onKeyPressed(), uiTextEntryNode::onKeyPressed(), uiLocatedNode::onKeyReleased(), UI_ExecuteLuaEventScript_Key(), UI_KeyPressed(), UI_KeyPressedInWindow(), UI_KeyRelease(), UI_Node_KeyPressed(), UI_Node_KeyReleased(), and UI_TextEntryNodeEdit().