Alibek Omarov
694472f4c1
engine: platform: allow querying window type through R_GetWindowHandle
2025-05-24 22:03:43 +05:00
TheEVolk
735f4e2bcb
ref_api: make handle as argument and use type request input
2025-05-24 20:47:28 +05:00
TheEVolk
9ebeb520fa
engine: platform: refactor R_GetWindowHandle to return a struct instead of a pointer
2025-05-24 20:47:28 +05:00
TheEVolk
4ce03662d9
ref_api: R_GetWindowHandle method
2025-05-24 20:47:28 +05:00
Alibek Omarov
ffc8bf30d7
engine: platform: make most input platform functions optional, patch fbdev/evdev to compile
2025-05-11 16:14:36 +03:00
Alibek Omarov
6ccafbe297
engine: platform: move Host_Minimize_f into platform code
2025-05-11 15:24:52 +03:00
Alibek Omarov
bbbd7711c1
engine: platform: cleanup remnants of disabling vsync while loading mechanism for linux fbdev and dos ports
2025-02-28 12:33:30 +03:00
Alibek Omarov
687fb0123f
engine: implement basic gamepad gyroscope calibration
...
Called on game controller becoming active or by user request.
Exposes current calibration state by read-only console variable.
2025-02-03 13:14:51 +03:00
Alibek Omarov
b16037eabf
engine: drop raw SDL joystick API, always use GameController instead. Implement actually working rumble, ensure we're freeing up all resources related to gamepads
2025-01-31 17:50:19 +03:00
Alibek Omarov
e14cd758ad
engine: turn Platform_Sleep into an inline function that directly calls platform-specific delay functions
2024-12-04 18:32:03 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
df6546d5b1
engine: client: add new gamma implementation
...
* immediately expose it in RefAPI. Bump RefAPI to version 7.
* remove VID_StartupGamma, it's not used anymore
* remove stub lightgamma and direct cvars
* add a temporary check for v_direct and v_lightgamma default values
2024-01-09 03:33:24 +03:00
Alibek Omarov
46f38c84b5
engine: platform: dos: fix according to platform.h changes
2023-10-10 14:12:42 +03:00
Alibek Omarov
c16a10e6f3
engine: platform: refactor Platform_Init/Shutdown/GetNativeObject functions. They are now defined in the header, and call platform-specific functios that defined in platform code
2023-06-16 07:32:19 +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
mittorn
51849c6140
platform: DOS4GW port
2020-02-08 23:15:40 +07:00