From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/joystick/linux/SDL_sysjoystick_c.h | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/source/src/joystick/linux/SDL_sysjoystick_c.h b/source/src/joystick/linux/SDL_sysjoystick_c.h
index a92429b..dea9405 100644
--- a/source/src/joystick/linux/SDL_sysjoystick_c.h
+++ b/source/src/joystick/linux/SDL_sysjoystick_c.h
@@ -53,18 +53,30 @@
/* Support for the Linux 2.4 unified input interface */
Uint8 key_map[KEY_MAX];
Uint8 abs_map[ABS_MAX];
+ SDL_bool has_key[KEY_MAX];
+ SDL_bool has_abs[ABS_MAX];
+
struct axis_correct
{
- int used;
+ SDL_bool use_deadzones;
+
+ /* Deadzone coefficients */
int coef[3];
+
+ /* Raw coordinate scale */
+ int minimum;
+ int maximum;
+ float scale;
} abs_correct[ABS_MAX];
- int fresh;
+ SDL_bool fresh;
+ SDL_bool recovering_from_dropped;
/* Steam Controller support */
SDL_bool m_bSteamController;
/* 4 = (ABS_HAT3X-ABS_HAT0X)/2 (see input-event-codes.h in kernel) */
int hats_indices[4];
+ SDL_bool has_hat[4];
/* Set when gamepad is pending removal due to ENODEV read error */
SDL_bool gone;
--
Gitblit v1.9.3