Alibek Omarov
802c7a86a9
engine: platform: sdl: add pause and scrolllock handlers
2022-12-06 11:50:38 +03:00
SNMetamorph
b35cf6e30c
engine: platform: update VGUI cursor state in Platform_SetCursorType
2022-11-08 06:39:09 +06:00
Alibek Omarov
1a09d297ee
engine: minimize SetCursorType calls count
2022-10-13 14:49:48 +03:00
Alibek Omarov
d45e6e0ad1
engine: platform: sdl: SetCursorType shouldn't know about current game state
2022-10-13 14:07:48 +03:00
Alibek Omarov
2d2523df4a
engine: client: touch: generalise touch emulation code
...
* fix doubleclicks and wheels in VGUI
2022-10-12 05:18:19 +03:00
Alibek Omarov
5bae2f06ad
engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't
2022-09-20 21:29:19 +03:00
Alibek Omarov
3a8c58d192
engine: platform: sdl: fix parentheses around IsAudioError macro
2022-08-31 07:13:02 +03:00
Alibek Omarov
0d7a2e7bad
engine: platform: change capture API to allow locking/unlocking buffer to prevent race condition, use single function for pause
2022-08-31 06:50:06 +03:00
SNMetamorph
9f9141823a
engine: added audio backend print to s_info command
2022-08-20 15:36:02 +03:00
Alibek Omarov
22ff45f5d0
engine: platform: add audio capture shutdown functions
2022-08-20 03:17:51 +03:00
SNMetamorph
9bcd36cc24
engine: voice code minor refactoring
2022-08-18 04:46:11 +03:00
Velaron
2b9e050f57
engine: voice support
2022-08-18 04:46:11 +03:00
Alibek Omarov
7157c3b441
engine: platform: sdl: don't enable high dpi code for Apple
...
It seems enables HighDPI awareness but doesn't create HighDPI OpenGL context
It needs some plist magic to be enabled back again
2022-08-08 23:53:20 +03:00
SNMetamorph
fbdfed84be
engine: platform: sdl: fixed bug with unhidable mouse cursor in center of screen
2022-07-09 00:31:49 +03:00
Alibek Omarov
79dc090aae
engine: platform: sdl: use SetClassLongPtr function to be compatible with 64-bit Windows API
2022-06-29 02:44:50 +03:00
Alibek Omarov
5285f51a26
engine: platform: sdl: fix loading ICO when it's in RoDir
2022-06-25 17:12:08 +03:00
Alibek Omarov
3e23634369
engine: platform: sdl: enable ICO support on Win64
2022-06-25 17:04:02 +03:00
Alibek Omarov
4e295622be
Revert "engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons"
...
This reverts commit 2182ba9630
.
2022-06-25 17:03:11 +03:00
Alibek Omarov
2182ba9630
engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons
2022-06-24 19:15:28 +03:00
Alibek Omarov
ac308f7298
engine: platform: sdl: fix SDL1.2 build
2022-06-13 04:27:54 +03:00
Alibek Omarov
13f93412cd
engine: platform: sdl: forgot to add an include, sorry\!
2022-06-02 03:01:58 +03:00
Alibek Omarov
d1de9e2802
engine: platform: sdl: proper cursors allocation and free
2022-05-30 03:33:03 +03:00
SNMetamorph
641f0632ef
engine: client: fixed compilation errors on Android
2022-05-02 03:29:24 +03:00
SNMetamorph
cfcd58dd78
engine: client: extended VGUI API interface
2022-05-02 03:29:24 +03:00
SNMetamorph
8044d23e7f
engine: platform: sdl: fixed Key_Event callback when text input enabled
2022-05-02 03:29:24 +03:00
SNMetamorph
d3e213aa1b
engine: platform: added Platform_GetKeyModifiers
2022-05-02 03:29:24 +03:00
SNMetamorph
26e09c240a
engine: platform: added Platform_SetCursorType
2022-05-02 03:29:24 +03:00
SNMetamorph
15eb6808c4
engine: platform: updated clipboard read/write functions
2022-05-02 03:29:24 +03:00
Alibek Omarov
81c4acab66
platform: sdl: fix right mouse button issuing wrong key code
2022-04-10 19:40:11 +03:00
Alibek Omarov
89baa633c8
engine: sdl: fix mouse activated when focus gained but not game is active
2022-01-28 01:20:14 +03:00
Alibek Omarov
abbd0f92a4
engine: input: fix incorrect client notifying about mouse button states
2022-01-13 15:52:59 +03:00
Alibek Omarov
a2f741fe8a
engine: platform: sdl: try to fix 1.2 build
2022-01-04 08:39:11 +03:00
Alibek Omarov
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
2022-01-04 08:39:11 +03:00
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
2022-01-04 08:39:11 +03:00
Alibek Omarov
25c0557f7f
engine: platform: sdl: fix building with SDL1.2
2021-11-27 05:26:09 +03:00
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
2021-11-23 05:17:19 +03:00
Alibek Omarov
2edc8b16ae
engine: platform: fix sdl audio
2021-03-10 13:44:25 +03:00
Alibek Omarov
a93d9ac71c
engine: platform: simplify sound code
...
Remove SNDDMA_GetSoundtime, because it was mostly copypasted from one
platform code to another.
SNDDMA_GetDMAPos gets removed too, as we have dma.samplepos for that.
2021-03-10 00:16:13 +03:00
Alibek Omarov
c68af64fe5
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
2021-03-10 00:03:12 +03:00
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
2021-03-09 23:59:29 +03:00
Alibek Omarov
ca84a1a10e
engine: fix building with SDL older than 2.0.4
2021-03-01 21:48:31 +03:00
a1batross
3b192ca490
engine: sdl: don't free NULL vidmodes
2021-02-27 00:08:42 +03:00
lewa_j
63c4b2748c
platform: win32: sdl: Fix zombie processes after early Sys_Error on windows+sdl
2021-01-16 01:13:57 +03:00
Gleb Mazovetskiy
4daa7c23a0
SDL2 GameController: Map axes to engine explicitly
2021-01-07 17:37:37 +03:00
Gleb Mazovetskiy
3e8e751dc7
GameController: Add separate D-Pad bindings
...
1. Adds separate D-Pad bindings so that they don't conflict with arrow
keys on the keyboard.
2. Also adds some basic defaults for gamepad buttons.
2021-01-07 17:37:37 +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
Gleb Mazovetskiy
9452a389a5
SDL GameController: Hotplug and multiple gamepads
...
1. Process events from all game controllers.
2. Support controller hotplug.
2021-01-02 18:00:36 +03:00
Gleb Mazovetskiy
5a36a26dd1
Fix SDL_GAMECONTROLLER handling
...
1. Do not disable SDL_JOYSTICK events. Disabling these events causes
game controller events to be disabled as well. Instead, filter these events out.
2. Fix button mapping (it was off by one).
2020-12-28 16:11:19 +03:00
Velaron
d015e97eae
engine: client: m_rawinput support on windows
2020-08-24 21:22:02 +03:00
Velaron
b4aecfbf23
engine: move some input code
2020-08-24 21:22:02 +03:00