[upstream_utils] Update to SDL joystick mappings from 1-19-2026 (#8593)

Fixes #8103
This commit is contained in:
sciencewhiz
2026-02-07 11:49:30 -06:00
committed by GitHub
parent 2d97cb928f
commit 19c61cc419
6 changed files with 4113 additions and 607 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -58,6 +58,11 @@
//
// 3. This notice may not be removed or altered from any source distribution.
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
const char* _glfwDefaultMappings[] =
{
#if defined(GLFW_BUILD_WIN32_MAPPINGS)
@@ -80,3 +85,6 @@ const char* _glfwDefaultMappings[] =
#endif // GLFW_BUILD_LINUX_MAPPINGS
};
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

View File

@@ -1,7 +1,7 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: PJ Reiniger <pj.reiniger@gmail.com>
Date: Wed, 10 Jul 2024 03:16:58 -0400
Subject: [PATCH 1/2] Suppress Compiler Warnings
Subject: [PATCH 1/4] Suppress Compiler Warnings
---
src/input.c | 4 ++++

View File

@@ -1,7 +1,7 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tyler Veness <calcmogul@gmail.com>
Date: Sat, 20 Jul 2024 23:18:56 -0700
Subject: [PATCH 2/2] Disable docs build by default
Subject: [PATCH 2/4] Disable docs build by default
---
CMakeLists.txt | 2 +-

View File

@@ -0,0 +1,56 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: sciencewhiz <sciencewhiz@users.noreply.github.com>
Date: Sat, 24 Jan 2026 10:38:45 -0800
Subject: [PATCH 4/4] Fix supress warnings to be in input file
---
src/mappings.h | 8 ++++++++
src/mappings.h.in | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/src/mappings.h b/src/mappings.h
index 47d154f96d0bf4dbb4506ec43a59f2a374612551..f1914c74e4ab309ad2ce07d3ff3094a063a554a3 100644
--- a/src/mappings.h
+++ b/src/mappings.h
@@ -58,6 +58,11 @@
//
// 3. This notice may not be removed or altered from any source distribution.
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpedantic"
+#endif
+
const char* _glfwDefaultMappings[] =
{
#if defined(GLFW_BUILD_WIN32_MAPPINGS)
@@ -1936,3 +1941,6 @@ const char* _glfwDefaultMappings[] =
#endif // GLFW_BUILD_LINUX_MAPPINGS
};
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
diff --git a/src/mappings.h.in b/src/mappings.h.in
index f2604390a4388381136d5aec734395675e56d1b9..6ce5c953d051ec0bc7aa1e1788bda21eee9cfb7f 100644
--- a/src/mappings.h.in
+++ b/src/mappings.h.in
@@ -58,6 +58,11 @@
//
// 3. This notice may not be removed or altered from any source distribution.
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpedantic"
+#endif
+
const char* _glfwDefaultMappings[] =
{
#if defined(GLFW_BUILD_WIN32_MAPPINGS)
@@ -80,3 +85,6 @@ const char* _glfwDefaultMappings[] =
#endif // GLFW_BUILD_LINUX_MAPPINGS
};
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif