Add support for SDL3 joystick input driver
Made possible by EIREXE, xsellier and the SDL team. This commit includes statically linked SDL3 for Windows, Linux and macOS. The vendored copy of SDL3 was setup to only build the required subsystems for gamepad/joystick support, with some patches to be able to make it as minimal as possible and reduce the impact on binary size and code size. Co-authored-by: Álex Román Núñez <eirexe123@gmail.com> Co-authored-by: Xavier Sellier <xsellier@gmail.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
987832be46
commit
0b3496fb4f
@ -31,7 +31,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "crash_handler_windows.h"
|
||||
#include "joypad_windows.h"
|
||||
#include "key_mapping_windows.h"
|
||||
#include "tts_windows.h"
|
||||
|
||||
@ -196,6 +195,8 @@ class DropTargetWindows;
|
||||
#define WDA_EXCLUDEFROMCAPTURE 0x00000011
|
||||
#endif
|
||||
|
||||
class JoypadSDL;
|
||||
|
||||
class DisplayServerWindows : public DisplayServer {
|
||||
GDSOFTCLASS(DisplayServerWindows, DisplayServer);
|
||||
|
||||
@ -375,7 +376,9 @@ class DisplayServerWindows : public DisplayServer {
|
||||
HWND parent_hwnd = 0;
|
||||
};
|
||||
|
||||
JoypadWindows *joypad = nullptr;
|
||||
#ifdef SDL_ENABLED
|
||||
JoypadSDL *joypad_sdl = nullptr;
|
||||
#endif
|
||||
HHOOK mouse_monitor = nullptr;
|
||||
List<WindowID> popup_list;
|
||||
uint64_t time_since_popup = 0;
|
||||
|
||||
Reference in New Issue
Block a user