cfc7b35927
engine: client: don't leave the user without mouse cursor if they enabled m_ignore
2023-11-03 14:48:28 +03:00
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
2023-10-22 20:02:14 +03:00
ef663a8790
engine: partially remove legacy Android port, in preparation of new port merge
2023-06-05 20:30:18 +03:00
f19ed1c1c2
engine: client: move joystick cvars to static allocation
2023-05-27 21:52:58 +03:00
d9cbf1fa89
engine: client: move input cvars to static allocation
2023-05-27 21:52:58 +03:00
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
2023-05-27 21:52:58 +03:00
6e27926a10
engine: simplify XASH_USE_EVDEV macro usage by giving it's defined positive value
2023-03-27 17:28:19 +03:00
96c30371b7
engine: client: better specify rawinput enabling condition on Win32
2023-03-27 17:22:48 +03:00
9a42f4149f
engine: client: disable enabling mouse cursor in key_message (typing in chat)
2023-03-27 17:22:48 +03:00
023f6712f9
engine: client: always toggle mouse on when in console, menu or typing chat message
2022-11-16 21:14:48 +03:00
42740149ac
engine: client: fix mouse cursor being hidden in background map
2022-11-16 21:02:41 +03:00
1a09d297ee
engine: minimize SetCursorType calls count
2022-10-13 14:49:48 +03:00
2d2523df4a
engine: client: touch: generalise touch emulation code
...
* fix doubleclicks and wheels in VGUI
2022-10-12 05:18:19 +03:00
ab43486ee0
engine: client: don't segfault when client wasn't loaded
2022-07-11 02:43:26 +03:00
c3513b1615
engine: input: clean m_enginemouse leftovers, always enable SDL relative mouse mode for our input interface
2022-01-13 16:18:23 +03:00
abbd0f92a4
engine: input: fix incorrect client notifying about mouse button states
2022-01-13 15:52:59 +03:00
a2f741fe8a
engine: platform: sdl: try to fix 1.2 build
2022-01-04 08:39:11 +03:00
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
2022-01-04 08:39:11 +03:00
284eeea3c3
engine: client: rework mouse input, use IN_MouseEvent for clientdll, don't emit mouse events when mouse is visible or touch emulate is used
2022-01-04 08:39:11 +03:00
f2a9f805b8
engine: client: redefine some cvars as filterable
2021-11-23 05:23:38 +03:00
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
2021-11-23 05:23:38 +03:00
8a9231628e
engine: restrict potentially harmful or related to user settings engine cvars
2021-11-23 05:23:38 +03:00
5b387ba36a
engine: client: move Cbuf_Execute out of Host_InputFrame, cbuf will be executed always at ClientBegin. Fixes #482
2021-06-06 16:22:04 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
09ae961221
remove platform-specific macros
2020-08-24 21:22:02 +03:00
d015e97eae
engine: client: m_rawinput support on windows
2020-08-24 21:22:02 +03:00
b4aecfbf23
engine: move some input code
2020-08-24 21:22:02 +03:00
3e3aff040e
platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c
2020-02-08 23:15:40 +07:00
3a416636f1
engine: mark GAME_EXPORT's
2020-01-19 08:15:54 +07:00
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00
62cdf2ae5b
engine: input: hide SDL_ functions under XASH_SDL macro
2019-11-07 04:44:24 +03:00
9d826016b0
engine: finish sdl1.2 port
2019-11-02 08:56:07 +03:00
9e99a2bc37
engine: dirty sdl1.2 port
2019-11-02 08:56:07 +03:00
2897e5f17e
input: fix evdev macro
2019-10-26 06:53:24 +07:00
803c396fa2
platform: new fbdev bakend, move in_evdev to bakends
2019-10-22 01:42:02 +07:00
c67f065d90
engine: client: explicitly cast literals to floats
2019-10-18 16:46:54 +03:00
7770b1a82b
input: improve touch emulation
2019-09-28 19:33:57 +07:00
7f3ee9ca71
input: merge touch support again. Fix m_ignore, fix EngineAppendMove
2019-09-27 02:19:03 +07:00
8bb6aa2c51
engine: don't include windows headers, as they globally included by port.h already
2019-08-09 02:46:29 +03:00
6aa4765c3e
engine: input: implement input devices collecting
2019-07-09 03:48:09 +03:00
8385563bef
engine: fix possible crash during exit
2019-03-30 01:29:40 +03:00
f48335f2f2
ref: get rid of fov in globals, add RenderFrame wrapper, which correctly initialize shared global values
2019-03-28 18:17:58 +03:00
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
2019-02-18 21:25:26 +03:00
25d8a94c1c
engine: fix implicit declaration, remove dead MsgDev now, fix const modifier loss in host.c
2018-11-16 15:25:04 +03:00
96e0167e47
platform: add GetMousePos, SetMousePos calls, fix typo
2018-10-27 23:28:29 +03:00
6ba7781a61
input: various fixes: fix mistyped pitch/yaw, replace SDL_GetMouseState by SDL_GetRelativeMouseState, fix disabling mouse with -nomouse argument
2018-10-21 22:13:58 +03:00
880d3de53a
input: move evdev under m_ignore
2018-10-21 22:04:24 +03:00
da094fa04e
input: provide a common function for collecting input from different sources
2018-10-11 00:04:23 +03:00
40094f2867
Move client-only parts to client
2018-04-18 18:10:32 +03:00