SDL: relaxed the digital hat deadzone slightly, and fixed typo in DEBUG_GAMEPAD_MAPPING define

From f7a19f9ea8af24cc57e8cbfe183fca155e9eabec Mon Sep 17 00:00:00 2001
From: atfrase <[EMAIL REDACTED]>
Date: Fri, 14 Jan 2022 13:14:42 -0600
Subject: [PATCH] relaxed the digital hat deadzone slightly, and fixed typo in
 DEBUG_GAMEPAD_MAPPING define

---
 src/joystick/linux/SDL_sysjoystick.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c
index 4a8189871c8..69dd1c5b4d9 100644
--- a/src/joystick/linux/SDL_sysjoystick.c
+++ b/src/joystick/linux/SDL_sysjoystick.c
@@ -83,7 +83,7 @@
 #endif
 
 #if 1
-#define DEBUG_GAMEPAD_MAPPINGS 1
+#define DEBUG_GAMEPAD_MAPPING 1
 #endif
 
 typedef enum
@@ -1357,7 +1357,7 @@ HandleHat(SDL_Joystick *stick, int hatidx, int axis, int value)
         if (value <= correct->minimum[axis]) {
             correct->minimum[axis] = value;
             value = 0;
-        } else if (!correct->use_deadzones || value < correct->minimum[axis] / 2) {
+        } else if (!correct->use_deadzones || value < correct->minimum[axis] / 3) {
             value = 0;
         } else {
             value = 1;
@@ -1366,7 +1366,7 @@ HandleHat(SDL_Joystick *stick, int hatidx, int axis, int value)
         if (value >= correct->maximum[axis]) {
             correct->maximum[axis] = value;
             value = 2;
-        } else if (!correct->use_deadzones || value > correct->maximum[axis] / 2) {
+        } else if (!correct->use_deadzones || value > correct->maximum[axis] / 3) {
             value = 2;
         } else {
             value = 1;
@@ -1716,7 +1716,7 @@ LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
         if (item->mapping) {
             SDL_memcpy(out, item->mapping, sizeof(*out));
 #ifdef DEBUG_GAMEPAD_MAPPING
-            SDL_Log("Prior mapping for device %d: %s", device_index, out);
+            SDL_Log("Prior mapping for device %d", device_index);
 #endif
             return SDL_TRUE;
         } else {
@@ -2076,7 +2076,7 @@ LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
         SDL_memcpy(item->mapping, out, sizeof(*out));
     }
 #ifdef DEBUG_GAMEPAD_MAPPING
-    SDL_Log("Generated mapping for device %d: %s", device_index, out);
+    SDL_Log("Generated mapping for device %d", device_index);
 #endif
 
     return SDL_TRUE;