Alibek Omarov
33c9f7118b
engine: platform: sdl: sanitize buttons/axes from SDL, add ABXY->BAYX swap for NSwitch
1 year ago
Alibek Omarov
c741ec223f
engine: client: keys: reserve some more buttons as gamepad buttons according to latest SDL2 GameController header
1 year ago
Alibek Omarov
d6d98bd297
engine: platform: sdl: minor style changes
1 year ago
Alibek Omarov
5e1b5d89f7
engine: client: console: allow opening OSK and existing console with gamepads for all platforms
1 year ago
Alibek Omarov
a0edfd28b2
engine: common: host: use DEFAULT_ALLOWCONSOLE macro to set default console state
1 year ago
Alibek Omarov
b5b6b8b785
engine: network: fix some unitialized sockaddr_storage's
1 year ago
fgsfds
b2cc96cf0d
scripts: wscript: nswitch: do the libstdc++ hack right before build to not pollute the environment
1 year ago
fgsfds
69607d7890
nswitch: do not link libstdc++ into dynamic libraries
...
instead only link it to the main executable with --whole-archive, letting the dynamic libs import anything they want from it
1 year ago
Alibek Omarov
5ba2449d10
engine: common: static-ify functions in mod_studio.c
1 year ago
Alibek Omarov
05016f8639
engine: vgui: add EnableTextInput to the API
1 year ago
Alibek Omarov
634574f249
engine: platform: sdl: don't enable text mode with cursor???
1 year ago
fgsfds
f782d444a8
engine: platform: posix: don't redefine _GNU_SOURCE
1 year ago
fgsfds
b68def2b9c
engine: touch: only pop up touch keyboard on FINGERDOWN events
1 year ago
fgsfds
d944301a60
engine: client: add barebones gamepad controls to input fields
1 year ago
fgsfds
15ba932046
engine: server: add sv_autosave cvar
...
* a1ba: added FCVAR_PRIVILEGED just in case
1 year ago
fgsfds
b73c16c216
engine: net_ws: pass correct sockaddr lengths where needed
1 year ago
fgsfds
0ba4ef678c
engine: net_ws: pass correct sockaddr lengths where needed
1 year ago
fgsfds
6557ac7fb4
server: add sv_autosave cvar
1 year ago
fgsfds
f3e50b5500
add barebones gamepad controls for input fields and console
1 year ago
fgsfds
705f252ed8
nswitch: don't automatically pop up OSK when opening console
1 year ago
fgsfds
cb28101732
touch: only pop up OSK on FINGERDOWN events
1 year ago
fgsfds
f87863b8bc
nswitch: always enable console
1 year ago
fgsfds
36e7856b9c
don't redefine _GNU_SOURCE
1 year ago
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
1 year ago
Alibek Omarov
f910f4896c
engine: client: font: finally add support for tab character in engine
1 year ago
Alibek Omarov
6eae3471cf
engine: client: font: fix consecutive newlines skipped, add flag to reset color after a newline
1 year ago
Alibek Omarov
c0fa91bec9
engine: client: consolidate client and menu scissor functions
1 year ago
Alibek Omarov
ba6dd3c751
engine: client: font: fix another inverted check
1 year ago
Alibek Omarov
fd63018fb5
engine: client: make client string drawing functions ignore linefeeds
1 year ago
Alibek Omarov
2225915702
engine: client: font: fix CL_DrawStringLen
1 year ago
Alibek Omarov
d14e486721
engine: client: font: add special flag to ignore linefeeds when drawing strings
1 year ago
Alibek Omarov
bec0b36bb9
engine: client: font: fix colorcodes, don't reset Colo4ub, it will be reset by consequent draw calls anyway
1 year ago
Alibek Omarov
e2c2821191
engine: client: font: do not apply filtering hack when fonts aren't upscaled
1 year ago
Alibek Omarov
a19d34035d
engine: client: font: do not use OpenFile on WADs >_<
1 year ago
Alibek Omarov
77ea03a62c
engine: client: introduce bare-bones font manager and text drawing manager
...
* wire hud_fontscale so HUD font scaling can be used independently from
hud_scale
* allow small optimizatinons, like optional UTF-8 decoding, or not calling
SetRenderMode for each character
* even less copypasted code in text drawing between client code and console
* get rid of direct DrawCharacter calls when it can be just DrawString
* fix net_speeds, r_speeds with scaled console fonts
* try to fix MobilityAPI's pfnDrawCharacterScaled
* center keyboard keys in OSK code
1 year ago
Alibek Omarov
402a0f129d
engine: platform: sdl: use SDL joystick rumble for Platform_Vibrate
1 year ago
Alibek Omarov
d7116afc92
engine: client: add hud_fontscale cvar to control HUD font scaling (not wired to any logic yet)
1 year ago
Alibek Omarov
d5fe491c14
engine: client: add a little auto-disconnect message in case of server timeout
1 year ago
Alibek Omarov
92138428c5
engine: touch: don't emulate touch and mouse through SDL2 (taken from @Velaron branch)
1 year ago
Alibek Omarov
d7af50ea6c
engine: ref: remove direction vectors from Ref API, renderers calculate them from viewangles to local data anyway
2 years ago
Alibek Omarov
f7d4e5a2ea
engine: server: don't show GAMESAVED message in autosaves, small refactoring
2 years ago
Alibek Omarov
2e3788f23d
engine: dedicated: add CL_HudMessage to dedicated stubs
2 years ago
Alibek Omarov
eaf9a9283a
Revert "engine: network: do not read from uninitialized sockaddr storage"
...
This reverts commit 4f78ec01cf
.
2 years ago
Alibek Omarov
4f78ec01cf
engine: network: do not read from uninitialized sockaddr storage
2 years ago
Alibek Omarov
be084d5603
engine: crashhandler: fully initialize struct sigaction
2 years ago
Alibek Omarov
aac0be1ab3
engine: imagelib: img_bmp: fully initialize local palette array
2 years ago
Alibek Omarov
6282acc825
engine: client: simplify drawing loading or paused bar, fix position with hud_scale active
2 years ago
Alibek Omarov
39fd30a472
engine: client: fix HUD font loading
2 years ago
Alibek Omarov
279e391949
engine: sound: allow mouth move for CHAN_STREAM
2 years ago
Alibek Omarov
6df25392b8
engine: server: redirect special sounds, detected by leading asterisk, into CHAN_STREAM
...
In GoldSrc this magic symbol means that we should not override channel this
sound is playing on. Originally handled on client but for both static and dynamic sounds
so let's redirect channel on server side instead.
2 years ago