Alibek Omarov
cfc7b35927
engine: client: don't leave the user without mouse cursor if they enabled m_ignore
10 months ago
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
10 months ago
Alibek Omarov
ef663a8790
engine: partially remove legacy Android port, in preparation of new port merge
1 year ago
Alibek Omarov
f19ed1c1c2
engine: client: move joystick cvars to static allocation
1 year ago
Alibek Omarov
d9cbf1fa89
engine: client: move input cvars to static allocation
1 year ago
Alibek Omarov
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
1 year ago
Alibek Omarov
6e27926a10
engine: simplify XASH_USE_EVDEV macro usage by giving it's defined positive value
1 year ago
Alibek Omarov
96c30371b7
engine: client: better specify rawinput enabling condition on Win32
1 year ago
Alibek Omarov
9a42f4149f
engine: client: disable enabling mouse cursor in key_message (typing in chat)
1 year ago
Alibek Omarov
023f6712f9
engine: client: always toggle mouse on when in console, menu or typing chat message
2 years ago
Alibek Omarov
42740149ac
engine: client: fix mouse cursor being hidden in background map
2 years ago
Alibek Omarov
1a09d297ee
engine: minimize SetCursorType calls count
2 years ago
Alibek Omarov
2d2523df4a
engine: client: touch: generalise touch emulation code
...
* fix doubleclicks and wheels in VGUI
2 years ago
a1batross
ab43486ee0
engine: client: don't segfault when client wasn't loaded
2 years ago
Alibek Omarov
c3513b1615
engine: input: clean m_enginemouse leftovers, always enable SDL relative mouse mode for our input interface
3 years ago
Alibek Omarov
abbd0f92a4
engine: input: fix incorrect client notifying about mouse button states
3 years ago
Alibek Omarov
a2f741fe8a
engine: platform: sdl: try to fix 1.2 build
3 years ago
Alibek Omarov
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
3 years ago
Alibek Omarov
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
3 years ago
Alibek Omarov
f2a9f805b8
engine: client: redefine some cvars as filterable
3 years ago
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
3 years ago
Alibek Omarov
8a9231628e
engine: restrict potentially harmful or related to user settings engine cvars
3 years ago
Alibek Omarov
5b387ba36a
engine: client: move Cbuf_Execute out of Host_InputFrame, cbuf will be executed always at ClientBegin. Fixes #482
3 years ago
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:]]\+$//' {} \+
```
4 years ago
Velaron
09ae961221
remove platform-specific macros
4 years ago
Velaron
d015e97eae
engine: client: m_rawinput support on windows
4 years ago
Velaron
b4aecfbf23
engine: move some input code
4 years ago
mittorn
3e3aff040e
platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c
5 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
62cdf2ae5b
engine: input: hide SDL_ functions under XASH_SDL macro
5 years ago
Alibek Omarov
9d826016b0
engine: finish sdl1.2 port
5 years ago
Alibek Omarov
9e99a2bc37
engine: dirty sdl1.2 port
5 years ago
mittorn
2897e5f17e
input: fix evdev macro
5 years ago
mittorn
803c396fa2
platform: new fbdev bakend, move in_evdev to bakends
5 years ago
Alibek Omarov
c67f065d90
engine: client: explicitly cast literals to floats
5 years ago
mittorn
7770b1a82b
input: improve touch emulation
5 years ago
mittorn
7f3ee9ca71
input: merge touch support again. Fix m_ignore, fix EngineAppendMove
5 years ago
Alibek Omarov
8bb6aa2c51
engine: don't include windows headers, as they globally included by port.h already
5 years ago
Alibek Omarov
6aa4765c3e
engine: input: implement input devices collecting
5 years ago
Alibek Omarov
8385563bef
engine: fix possible crash during exit
6 years ago
Alibek Omarov
f48335f2f2
ref: get rid of fov in globals, add RenderFrame wrapper, which correctly initialize shared global values
6 years ago
Alibek Omarov
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
6 years ago
Alibek Omarov
25d8a94c1c
engine: fix implicit declaration, remove dead MsgDev now, fix const modifier loss in host.c
6 years ago
Alibek Omarov
96e0167e47
platform: add GetMousePos, SetMousePos calls, fix typo
6 years ago
Alibek Omarov
6ba7781a61
input: various fixes: fix mistyped pitch/yaw, replace SDL_GetMouseState by SDL_GetRelativeMouseState, fix disabling mouse with -nomouse argument
6 years ago
Alibek Omarov
880d3de53a
input: move evdev under m_ignore
6 years ago
Alibek Omarov
da094fa04e
input: provide a common function for collecting input from different sources
6 years ago
Alibek Omarov
40094f2867
Move client-only parts to client
6 years ago
Alibek Omarov
4189af8b50
Engine input port. Incomplete integration of touch, gamepad, evdev input
6 years ago