ddnet/src/engine
Robert Müller 2579f0be2f Add support for hot-plugging gamecontrollers
Handle the appropriate SDL events to open new joysticks when they are connected and remove joysticks when they are disconnected.

If the active joystick gets disconnected, then the first joystick in the list will be activated as a fallback.
If the previously activated joystick gets reconnected, it will be activated again automatically, as it is identified by the GUID stored in the configuration.
The stored joystick GUID is only updated when the user manually selects a new joystick in the controls settings or with the console.

Closes #6152.
2022-12-18 12:41:17 +01:00
..
client Add support for hot-plugging gamecontrollers 2022-12-18 12:41:17 +01:00
docs Merge #5918 2022-10-09 13:53:05 +00:00
external Update zlib to version 1.2.13 2022-10-14 14:53:24 +02:00
gfx Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
server Fix conflict resolution between #6013 and #5948 2022-12-12 14:13:32 +01:00
shared Minimal changes to default to Vulkan 2022-12-13 19:37:03 +01:00
antibot.h Forgot to add target here 2021-07-22 00:22:12 +02:00
Cargo.toml Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
client.h Fix editor smooth zooming when joining/reloading game 2022-12-15 18:18:06 +01:00
config.h Implement "reset" command 2021-12-27 01:13:11 +01:00
console.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
console.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
demo.h Allow spectator mode to be changed while demo is paused 2022-08-28 17:52:49 +02:00
discord.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
editor.h Use bool for Load, Save, Append result, true on success 2022-11-03 20:17:06 +01:00
engine.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
favorites.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
friends.h Bump friends limit from 1024 to 4096 (fixes #6096) 2022-12-06 10:31:43 +01:00
ghost.h Organize engine-shared includes 2022-05-29 20:02:22 +02:00
graphics.h Let CKernel clean-up. Use unused CSound::Shutdown 2022-09-16 16:50:19 +02:00
input.h Handle ordinal joystick hat keys as combined cardinal hat keys 2022-12-17 17:18:01 +01:00
kernel.h Fix misspellings 2022-10-25 13:51:56 -03:00
keys.h Handle ordinal joystick hat keys as combined cardinal hat keys 2022-12-17 17:18:01 +01:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
map.h Huge variable naming format 2022-07-08 18:01:29 +02:00
message.h Run clang-format 2020-09-26 21:50:15 +02:00
rust.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
server.h report extra player info to master http 2022-11-14 08:04:34 +01:00
serverbrowser.h Remove support for legacy 64 player info protocol 2022-10-12 16:12:02 +02:00
sound.h Let CKernel clean-up. Use unused CSound::Shutdown 2022-09-16 16:50:19 +02:00
sqlite.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
steam.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
storage.h Add TYPE_ALL_OR_ABSOLUTE and TYPE_SAVE_OR_ABSOLUTE storage types 2022-11-20 16:07:40 +01:00
textrender.h (A bit) safer interface for text containers 2022-07-08 19:19:37 +02:00
updater.h Overhauled job system 2017-11-23 15:47:38 +01:00
uuid.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
warning.h Add block list for drivers 2020-11-05 21:07:14 +01:00