Alibek Omarov
802c7a86a9
engine: platform: sdl: add pause and scrolllock handlers
2 years ago
SNMetamorph
b35cf6e30c
engine: platform: update VGUI cursor state in Platform_SetCursorType
2 years ago
Alibek Omarov
1a09d297ee
engine: minimize SetCursorType calls count
2 years ago
Alibek Omarov
d45e6e0ad1
engine: platform: sdl: SetCursorType shouldn't know about current game state
2 years ago
Alibek Omarov
2d2523df4a
engine: client: touch: generalise touch emulation code
...
* fix doubleclicks and wheels in VGUI
2 years ago
Alibek Omarov
5bae2f06ad
engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't
2 years ago
Alibek Omarov
3a8c58d192
engine: platform: sdl: fix parentheses around IsAudioError macro
2 years ago
Alibek Omarov
0d7a2e7bad
engine: platform: change capture API to allow locking/unlocking buffer to prevent race condition, use single function for pause
2 years ago
SNMetamorph
9f9141823a
engine: added audio backend print to s_info command
2 years ago
Alibek Omarov
22ff45f5d0
engine: platform: add audio capture shutdown functions
2 years ago
SNMetamorph
9bcd36cc24
engine: voice code minor refactoring
2 years ago
Velaron
2b9e050f57
engine: voice support
2 years ago
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
2 years ago
SNMetamorph
fbdfed84be
engine: platform: sdl: fixed bug with unhidable mouse cursor in center of screen
2 years ago
Alibek Omarov
79dc090aae
engine: platform: sdl: use SetClassLongPtr function to be compatible with 64-bit Windows API
2 years ago
Alibek Omarov
5285f51a26
engine: platform: sdl: fix loading ICO when it's in RoDir
2 years ago
Alibek Omarov
3e23634369
engine: platform: sdl: enable ICO support on Win64
2 years ago
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
.
2 years ago
Alibek Omarov
2182ba9630
engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons
2 years ago
Alibek Omarov
ac308f7298
engine: platform: sdl: fix SDL1.2 build
2 years ago
Alibek Omarov
13f93412cd
engine: platform: sdl: forgot to add an include, sorry\!
2 years ago
Alibek Omarov
d1de9e2802
engine: platform: sdl: proper cursors allocation and free
2 years ago
SNMetamorph
641f0632ef
engine: client: fixed compilation errors on Android
3 years ago
SNMetamorph
cfcd58dd78
engine: client: extended VGUI API interface
3 years ago
SNMetamorph
8044d23e7f
engine: platform: sdl: fixed Key_Event callback when text input enabled
3 years ago
SNMetamorph
d3e213aa1b
engine: platform: added Platform_GetKeyModifiers
3 years ago
SNMetamorph
26e09c240a
engine: platform: added Platform_SetCursorType
3 years ago
SNMetamorph
15eb6808c4
engine: platform: updated clipboard read/write functions
3 years ago
Alibek Omarov
81c4acab66
platform: sdl: fix right mouse button issuing wrong key code
3 years ago
Alibek Omarov
89baa633c8
engine: sdl: fix mouse activated when focus gained but not game is active
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
25c0557f7f
engine: platform: sdl: fix building with SDL1.2
3 years ago
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
3 years ago
Alibek Omarov
2edc8b16ae
engine: platform: fix sdl audio
4 years ago
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.
4 years ago
Alibek Omarov
c68af64fe5
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
4 years ago
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
4 years ago
Alibek Omarov
ca84a1a10e
engine: fix building with SDL older than 2.0.4
4 years ago
a1batross
3b192ca490
engine: sdl: don't free NULL vidmodes
4 years ago
lewa_j
63c4b2748c
platform: win32: sdl: Fix zombie processes after early Sys_Error on windows+sdl
4 years ago
Gleb Mazovetskiy
4daa7c23a0
SDL2 GameController: Map axes to engine explicitly
4 years ago
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.
4 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
Gleb Mazovetskiy
9452a389a5
SDL GameController: Hotplug and multiple gamepads
...
1. Process events from all game controllers.
2. Support controller hotplug.
4 years ago
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).
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