Sync SDL joystick code with upstream

This commit is contained in:
Cameron Gutman committed 2026-09-01 00:38:40 -05:00
1 parent 0dc4c4fe67
commit c2e224ebf8
6 files changed
+500 -155

No files matched your search

+7 -7
View File
@@ -1,11 +1,11 @@
#pragma once
typedef int SDL_bool;
#define SDL_TRUE 1
#define SDL_FALSE 0
#include <stdbool.h>
#include <stdint.h>
typedef unsigned short Uint16;
typedef uint16_t Uint16;
typedef uint32_t Uint32;
SDL_bool SDL_IsJoystickXboxOneElite(Uint16 vendor_id, Uint16 product_id);
SDL_bool SDL_IsJoystickXboxSeriesX(Uint16 vendor_id, Uint16 product_id);
SDL_bool SDL_IsJoystickDualSenseEdge(Uint16 vendor_id, Uint16 product_id);
bool SDL_IsJoystickXboxOneElite(Uint16 vendor_id, Uint16 product_id);
bool SDL_IsJoystickXboxSeriesX(Uint16 vendor_id, Uint16 product_id);
bool SDL_IsJoystickDualSenseEdge(Uint16 vendor_id, Uint16 product_id);