|
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 |
| struct | [struct].keyq |
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 | |
| static struct | 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_ActionDown_f(), CL_OnBattlescape(), IN_KeyDown(), and in_pantilt.
Referenced by CL_ActionDown_f(), and IN_Init().
Definition at line 427 of file cl_input.cpp.
References CL_ActionUp_f(), CL_ActorActionMouse(), IN_GetMouseSpace, IN_KeyUp(), in_pantilt, IN_SetMouseSpace(), MS_NULL, MS_UI, and kbutton_t::msec.
Referenced by CL_ActionUp_f(), and IN_Init().
| float CL_GetKeyMouseState | ( | int | dir | ) |
Definition at line 542 of file cl_input.cpp.
References CL_GetKeyMouseState(), 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, viddef_t::rx, viddef_t::ry, SCROLL_BORDER, kbutton_t::state, STATE_FORWARD, STATE_RIGHT, STATE_ROT, STATE_TILT, STATE_ZOOM, viddef, viddef_t::viewHeight, viddef_t::viewWidth, viddef_t::x, and viddef_t::y.
Referenced by CL_CameraMove(), and CL_GetKeyMouseState().
Definition at line 458 of file cl_input.cpp.
References CL_BattlescapeRunning(), CL_HudRadarDown_f(), and UI_PushWindow().
Referenced by CL_HudRadarDown_f(), and IN_Init().
Definition at line 468 of file cl_input.cpp.
References CL_BattlescapeRunning(), CL_HudRadarUp_f(), and UI_CloseWindow().
Referenced by CL_HudRadarUp_f(), and IN_Init().
Left mouse button is hit in menu.
Definition at line 518 of file cl_input.cpp.
References CL_LeftClickDown_f(), IN_GetMouseSpace, K_MOUSE1, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by CL_LeftClickDown_f(), and IN_Init().
Left mouse button is freed in menu.
Definition at line 528 of file cl_input.cpp.
References CL_LeftClickUp_f(), IN_GetMouseSpace, K_MOUSE1, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by CL_LeftClickUp_f(), and IN_Init().
Switch one worldlevel down.
Definition at line 345 of file cl_input.cpp.
References CL_LevelDown_f(), CL_OnBattlescape(), cl_worldlevel, Cvar_SetValue(), and cvar_t::integer.
Referenced by CL_LevelDown_f(), and IN_Init().
Switch one worldlevel up.
Definition at line 335 of file cl_input.cpp.
References cl, CL_LevelUp_f(), CL_OnBattlescape(), cl_worldlevel, Cvar_SetValue(), cvar_t::integer, and clientBattleScape_t::mapMaxLevel.
Referenced by CL_LevelUp_f(), and IN_Init().
Middle mouse button is hit in menu.
Definition at line 498 of file cl_input.cpp.
References CL_MiddleClickDown_f(), IN_GetMouseSpace, K_MOUSE3, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by CL_MiddleClickDown_f(), and IN_Init().
Middle mouse button is freed in menu.
Definition at line 508 of file cl_input.cpp.
References CL_MiddleClickUp_f(), IN_GetMouseSpace, K_MOUSE3, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by CL_MiddleClickUp_f(), and IN_Init().
Simulate press of a key with a command.
Definition at line 1030 of file cl_input.cpp.
References CL_PressKey_f(), Cmd_Argc(), Cmd_Argv(), Com_Printf(), IN_EventEnqueue(), and Key_StringToKeynum().
Referenced by CL_PressKey_f(), and 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(), CL_ProcessMouseDragging(), mousePosX, and mousePosY.
Referenced by CL_ProcessMouseDragging(), and IN_Frame().
Right mouse button is hit in menu.
Definition at line 478 of file cl_input.cpp.
References CL_RightClickDown_f(), IN_GetMouseSpace, K_MOUSE2, mousePosX, mousePosY, MS_UI, and UI_MouseDown().
Referenced by CL_RightClickDown_f(), and IN_Init().
Right mouse button is freed in menu.
Definition at line 488 of file cl_input.cpp.
References CL_RightClickUp_f(), IN_GetMouseSpace, K_MOUSE2, mousePosX, mousePosY, MS_UI, and UI_MouseUp().
Referenced by CL_RightClickUp_f(), and IN_Init().
Left mouse click.
Definition at line 375 of file cl_input.cpp.
References battlescapeMouseDraggingActive, battlescapeMouseDraggingPossible, battlescapeMouseDraggingX, battlescapeMouseDraggingY, CL_BattlescapeRunning(), CL_InitBattlescapeMouseDragging(), CL_SelectDown_f(), IN_GetMouseSpace, mousePosX, mousePosY, and MS_UI.
Referenced by CL_SelectDown_f(), and IN_Init().
Definition at line 386 of file cl_input.cpp.
References battlescapeMouseDraggingActive, battlescapeMouseDraggingPossible, CL_ActorSelectMouse(), CL_SelectUp_f(), IN_GetMouseSpace, IN_SetMouseSpace(), MS_NULL, MS_UI, and MS_WORLD.
Referenced by CL_SelectUp_f(), and IN_Init().
Turn button is hit.
Definition at line 440 of file cl_input.cpp.
References CL_ActorTurnMouse(), CL_TurnDown_f(), IN_GetMouseSpace, MS_UI, and MS_WORLD.
Referenced by CL_TurnDown_f(), and IN_Init().
Definition at line 448 of file cl_input.cpp.
References CL_TurnUp_f(), IN_GetMouseSpace, IN_SetMouseSpace(), MS_NULL, and MS_UI.
Referenced by CL_TurnUp_f(), and IN_Init().
Definition at line 362 of file cl_input.cpp.
References CL_WheelDown_f(), and UI_MouseScroll().
Referenced by CL_WheelDown_f(), and IN_Init().
Definition at line 367 of file cl_input.cpp.
References CL_WheelUp_f(), and UI_MouseScroll().
Referenced by CL_WheelUp_f(), and IN_Init().
Definition at line 352 of file cl_input.cpp.
References CL_CameraZoomIn(), and CL_ZoomInQuant_f().
Referenced by CL_ZoomInQuant_f(), and IN_Init().
Definition at line 357 of file cl_input.cpp.
References CL_CameraZoomOut(), and CL_ZoomOutQuant_f().
Referenced by CL_ZoomOutQuant_f(), and IN_Init().
Definition at line 832 of file cl_input.cpp.
References Com_Printf(), in_debug, IN_EventEnqueue(), cvar_t::integer, Key_KeynumToString(), keyq, keyq_head, and MAX_KEYQ.
Referenced by CL_PressKey_f(), IN_EventEnqueue(), 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(), viddef_t::context, Cvar_SetValue(), IN_EventEnqueue(), IN_Frame(), IN_JoystickMove(), IN_Parse(), IN_PrintKey(), IN_ToggleFullscreen(), IN_TranslateKey(), cvar_t::integer, K_AUX1, K_MOUSE1, K_MOUSE2, K_MOUSE3, K_MOUSE4, K_MOUSE5, K_MWHEELDOWN, K_MWHEELUP, viddefContext_t::left, cvar_t::modified, mousePosX, mousePosY, oldMousePosX, oldMousePosY, viddef_t::rx, viddef_t::ry, viddefContext_t::top, UI_ReleaseInput(), UTF8_next(), vid_fullscreen, vid_grabmouse, vid_mode, viddef, and client_static_t::window.
Referenced by CL_Frame(), and IN_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_Init(), 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(), and IN_Init().
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, IN_KeyDown(), and kbutton_t::state.
Referenced by CL_ActionDown_f(), IN_KeyDown(), 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, IN_KeyUp(), kbutton_t::msec, and kbutton_t::state.
Referenced by CL_ActionUp_f(), IN_KeyUp(), 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, IN_PanTiltDown_f(), and MS_WORLD.
Referenced by IN_Init(), and IN_PanTiltDown_f().
Definition at line 238 of file cl_input.cpp.
References IN_KeyUp(), in_pantilt, and IN_PanTiltUp_f().
Referenced by IN_Init(), and IN_PanTiltUp_f().
Called every frame to parse the input.
Definition at line 580 of file cl_input.cpp.
References ca_active, CL_ActorMouseTrace(), cls, IN_Parse(), IN_SetMouseSpace(), MS_NULL, MS_UI, MS_WORLD, client_static_t::state, UI_IsMouseOnWindow(), viddef, viddef_t::viewHeight, and viddef_t::viewWidth.
Referenced by IN_Frame(), and IN_Parse().
Debug function to print sdl key events.
Definition at line 605 of file cl_input.cpp.
References Com_Printf(), in_debug, IN_PrintKey(), and cvar_t::integer.
Referenced by IN_Frame(), and IN_PrintKey().
Definition at line 1139 of file cl_input.cpp.
References CL_Milliseconds(), IN_SendKeyEvents(), Key_Event(), keyq, keyq_head, keyq_tail, and MAX_KEYQ.
Referenced by CL_SendCommand(), and IN_SendKeyEvents().
| void IN_SetMouseSpace | ( | mouseSpace_t | mspace | ) |
Definition at line 1050 of file cl_input.cpp.
References cursorChange_t::cursor, cursorChange, Cvar_GetValue(), IN_SetMouseSpace(), mouseSpace, MS_NULL, cursorChange_t::prevSpace, and SCR_ChangeCursor().
Referenced by CL_ActionUp_f(), CL_ActorUseHeadgear_f(), CL_SelectUp_f(), CL_TurnUp_f(), IN_Parse(), and IN_SetMouseSpace().
Definition at line 306 of file cl_input.cpp.
References IN_KeyDown(), in_shiftdown, and IN_ShiftDownDown_f().
Referenced by IN_Init(), and IN_ShiftDownDown_f().
Definition at line 310 of file cl_input.cpp.
References IN_KeyUp(), in_shiftdown, and IN_ShiftDownUp_f().
Referenced by IN_Init(), and IN_ShiftDownUp_f().
Definition at line 242 of file cl_input.cpp.
References IN_KeyDown(), in_shiftleft, and IN_ShiftLeftDown_f().
Referenced by IN_Init(), and IN_ShiftLeftDown_f().
Definition at line 260 of file cl_input.cpp.
References IN_KeyDown(), in_shiftdown, in_shiftleft, and IN_ShiftLeftDownDown_f().
Referenced by IN_Init(), and IN_ShiftLeftDownDown_f().
Definition at line 265 of file cl_input.cpp.
References IN_KeyUp(), in_shiftdown, in_shiftleft, and IN_ShiftLeftDownUp_f().
Referenced by IN_Init(), and IN_ShiftLeftDownUp_f().
Definition at line 246 of file cl_input.cpp.
References IN_KeyUp(), in_shiftleft, and IN_ShiftLeftUp_f().
Referenced by IN_Init(), and IN_ShiftLeftUp_f().
Definition at line 250 of file cl_input.cpp.
References IN_KeyDown(), in_shiftleft, IN_ShiftLeftUpDown_f(), and in_shiftup.
Referenced by IN_Init(), and IN_ShiftLeftUpDown_f().
Definition at line 255 of file cl_input.cpp.
References IN_KeyUp(), in_shiftleft, IN_ShiftLeftUpUp_f(), and in_shiftup.
Referenced by IN_Init(), and IN_ShiftLeftUpUp_f().
Definition at line 270 of file cl_input.cpp.
References IN_KeyDown(), in_shiftright, and IN_ShiftRightDown_f().
Referenced by IN_Init(), and IN_ShiftRightDown_f().
Definition at line 288 of file cl_input.cpp.
References IN_KeyDown(), in_shiftdown, in_shiftright, and IN_ShiftRightDownDown_f().
Referenced by IN_Init(), and IN_ShiftRightDownDown_f().
Definition at line 293 of file cl_input.cpp.
References IN_KeyUp(), in_shiftdown, in_shiftright, and IN_ShiftRightDownUp_f().
Referenced by IN_Init(), and IN_ShiftRightDownUp_f().
Definition at line 274 of file cl_input.cpp.
References IN_KeyUp(), in_shiftright, and IN_ShiftRightUp_f().
Referenced by IN_Init(), and IN_ShiftRightUp_f().
Definition at line 278 of file cl_input.cpp.
References IN_KeyDown(), in_shiftright, IN_ShiftRightUpDown_f(), and in_shiftup.
Referenced by IN_Init(), and IN_ShiftRightUpDown_f().
Definition at line 283 of file cl_input.cpp.
References IN_KeyUp(), in_shiftright, IN_ShiftRightUpUp_f(), and in_shiftup.
Referenced by IN_Init(), and IN_ShiftRightUpUp_f().
Definition at line 298 of file cl_input.cpp.
References IN_KeyDown(), in_shiftup, and IN_ShiftUpDown_f().
Referenced by IN_Init(), and IN_ShiftUpDown_f().
Definition at line 302 of file cl_input.cpp.
References IN_KeyUp(), in_shiftup, and IN_ShiftUpUp_f().
Referenced by IN_Init(), and IN_ShiftUpUp_f().
|
static |
Definition at line 844 of file cl_input.cpp.
References cls, IN_ToggleFullscreen(), and client_static_t::window.
Referenced by IN_Frame(), and IN_ToggleFullscreen().
Translate the keys to ufo keys.
Definition at line 622 of file cl_input.cpp.
References IN_TranslateKey(), 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(), and IN_TranslateKey().
Definition at line 224 of file cl_input.cpp.
References IN_KeyDown(), in_turndown, and IN_TurnDownDown_f().
Referenced by IN_Init(), and IN_TurnDownDown_f().
Definition at line 228 of file cl_input.cpp.
References IN_KeyUp(), in_turndown, and IN_TurnDownUp_f().
Referenced by IN_Init(), and IN_TurnDownUp_f().
Definition at line 200 of file cl_input.cpp.
References IN_KeyDown(), in_turnleft, and IN_TurnLeftDown_f().
Referenced by IN_Init(), and IN_TurnLeftDown_f().
Definition at line 204 of file cl_input.cpp.
References IN_KeyUp(), in_turnleft, and IN_TurnLeftUp_f().
Referenced by IN_Init(), and IN_TurnLeftUp_f().
Definition at line 208 of file cl_input.cpp.
References IN_KeyDown(), in_turnright, and IN_TurnRightDown_f().
Referenced by IN_Init(), and IN_TurnRightDown_f().
Definition at line 212 of file cl_input.cpp.
References IN_KeyUp(), in_turnright, and IN_TurnRightUp_f().
Referenced by IN_Init(), and IN_TurnRightUp_f().
Definition at line 216 of file cl_input.cpp.
References IN_KeyDown(), in_turnup, and IN_TurnUpDown_f().
Referenced by IN_Init(), and IN_TurnUpDown_f().
Definition at line 220 of file cl_input.cpp.
References IN_KeyUp(), in_turnup, and IN_TurnUpUp_f().
Referenced by IN_Init(), and IN_TurnUpUp_f().
Definition at line 314 of file cl_input.cpp.
References IN_KeyDown(), in_zoomin, and IN_ZoomInDown_f().
Referenced by IN_Init(), and IN_ZoomInDown_f().
Definition at line 318 of file cl_input.cpp.
References IN_KeyUp(), in_zoomin, and IN_ZoomInUp_f().
Referenced by IN_Init(), and IN_ZoomInUp_f().
Definition at line 322 of file cl_input.cpp.
References IN_KeyDown(), in_zoomout, and IN_ZoomOutDown_f().
Referenced by IN_Init(), and IN_ZoomOutDown_f().
Definition at line 326 of file cl_input.cpp.
References IN_KeyUp(), in_zoomout, and IN_ZoomOutUp_f().
Referenced by IN_Init(), and IN_ZoomOutUp_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 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().
|
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().
| struct [struct].keyq 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(), UI_CheckMouseMove(), UI_DrawDragAndDrop(), and UI_InvalidateMouse().
|
static |
Definition at line 77 of file cl_input.cpp.
Referenced by CL_GetKeyMouseState(), IN_Frame(), UI_CheckMouseMove(), UI_DrawDragAndDrop(), and UI_InvalidateMouse().