1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

sdl: Update to 3.2.28

This commit is contained in:
Rémi Verschelde
2025-12-12 23:25:11 +01:00
parent 08e6cd181f
commit a5452ce8c5
58 changed files with 703 additions and 465 deletions

View File

@@ -56,19 +56,6 @@ JoypadSDL::JoypadSDL() {
singleton = this;
}
#ifdef WINDOWS_ENABLED
extern "C" {
HWND SDL_HelperWindow;
}
// Required for DInput joypads to work
// TODO: remove this workaround when we update to newer version of SDL
JoypadSDL::JoypadSDL(HWND p_helper_window) :
JoypadSDL() {
SDL_HelperWindow = p_helper_window;
}
#endif
JoypadSDL::~JoypadSDL() {
// Process any remaining input events
process_events();

View File

@@ -34,16 +34,12 @@
#include "core/os/thread.h"
typedef uint32_t SDL_JoystickID;
typedef struct HWND__ *HWND;
typedef struct SDL_Joystick SDL_Joystick;
typedef struct SDL_Gamepad SDL_Gamepad;
class JoypadSDL {
public:
JoypadSDL();
#ifdef WINDOWS_ENABLED
JoypadSDL(HWND p_helper_window);
#endif
~JoypadSDL();
static JoypadSDL *get_singleton();