Alibek Omarov
4f89288ccf
common: cleanup port.h
3 years ago
Alibek Omarov
25c0557f7f
engine: platform: sdl: fix building with SDL1.2
3 years ago
Alibek Omarov
94dc74a37f
engine: restrict potentially harmful engine commands
3 years ago
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
3 years ago
Alibek Omarov
a0af256641
engine: library: fix saves on 64-bit Windows, compile custom loader only on x86
3 years ago
Alibek Omarov
f8e6033ae6
engine: move TIMER_LINUX to TIMER_POSIX, enabling dedicated builds for FreeBSD and other *nix platforms
3 years ago
Alibek Omarov
5bc4359a2f
engine: implement platform neutral saves, now we can load saves made in Linux on Windows and vice-versa
3 years ago
Alibek Omarov
17d3eaa590
engine: win32: remove normal win32 library loader, from now on every win32 port must port custom loader
3 years ago
exstrim401
db3e71bfcc
engine: Removed unused Haiku variables
3 years ago
exstrim401
2b436dced0
engine: Remove XASH3D_MIRRORDIR
...
also make XASH3D_GAME for all platforms
3 years ago
exstrim401
a89f9fa181
engine: Haiku BeGameLauncher support
3 years ago
Alibek Omarov
523798857b
engine: platform: fix opensles audio
4 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
SNMetamorph
56d5f08128
platform: win32: fixed crashes in COM_CheckLibraryDirectDependency
4 years ago
Ivan Avdeev
1b426b67e7
partially fix amd64 build on windows
...
Quality of this commit is questionable. I have no idea whether what I did
here makes sense or not.
But it compiles and runs (provided with hlsdk-xash3d amd64 build, which
is another story).
This omits necessary waf changes that are necessary to make a valid
64-bit build. Apparently it's not enough to just pass `-8` on Windows,
you also need to hack wscript to add `x64` target to MSVC. I'll do that
later when I figure out how.
This change is a precursor for RTX Vulkan effort --
VK_KHR_ray_tracing_pipeline and friends are only available on 64-bit
nvidia drivers (no idea about AMD, pls send GPUs onegai).
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
33ba1f25f3
sys_linux.c: Increase buffer size for /proc/self/status
...
Fixes #263
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
03668116d7
platform: win32: COM_CheckLibraryDirectDependency fixes
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
e96271a8a9
platform/android: make host.state actual in Android_UpdateSurface call
4 years ago
mittorn
f0c9aa1585
vid_android: workaround small output buffer
4 years ago
mittorn
4515d3e3cb
platform/android: implement native software blitter, fix lost context on resize, fix safegl
4 years ago
mittorn
bef873e1f8
platform/android: enable dynamic dladdr, fix build
4 years ago
mittorn
98ffbaf87a
android: fix fallbacks
4 years ago
Alibek Omarov
82c54b1b54
engine: disallow zero-width strings for getenv()
5 years ago
Alibek Omarov
89ca0dec5e
platform: android: slightly more verbosity
5 years ago
FOTMarut
79a7b7b1a3
engine: platform: sdl: Fix mousewheel in SDL2
...
- See issue 143
- Tested on SDL2
- Untested on SDL1.2
5 years ago
mittorn
84a3f6883d
sdl: add EGL hint
5 years ago
mittorn
02c68c3a70
platform/sdl: add missing Platform_Shutdown
5 years ago
mittorn
a0d09c9954
lib_static: fix warnings
5 years ago
mittorn
70cc52e203
posix/sdl: fix build
5 years ago
mittorn
51849c6140
platform: DOS4GW port
5 years ago
mittorn
3e3aff040e
platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c
5 years ago
mittorn
2b90790071
network: add stub for systems without BSD sockets, WATTCP support
5 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
5 years ago
mittorn
bbd033c254
lib: restore dll loader support
5 years ago
Alibek Omarov
d0dbd185ad
engine: android: fix enum-conversion
5 years ago
Alibek Omarov
8399107826
engine: platform: android: remake video backend to use EGL through Java code
5 years ago
Alibek Omarov
fec0a6baf6
engine: platform: android: change package name
5 years ago