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/sensor/SDL_sensor.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/source/src/sensor/SDL_sensor.c b/source/src/sensor/SDL_sensor.c
index 68c3b1f..ccf56d9 100644
--- a/source/src/sensor/SDL_sensor.c
+++ b/source/src/sensor/SDL_sensor.c
@@ -26,7 +26,6 @@
#include "SDL_atomic.h"
#include "SDL_events.h"
#include "SDL_syssensor.h"
-#include "SDL_assert.h"
#if !SDL_EVENTS_DISABLED
#include "../events/SDL_events_c.h"
@@ -39,6 +38,9 @@
#ifdef SDL_SENSOR_COREMOTION
&SDL_COREMOTION_SensorDriver,
#endif
+#ifdef SDL_SENSOR_WINDOWS
+ &SDL_WINDOWS_SensorDriver,
+#endif
#if defined(SDL_SENSOR_DUMMY) || defined(SDL_SENSOR_DISABLED)
&SDL_DUMMY_SensorDriver
#endif
@@ -48,7 +50,7 @@
static SDL_mutex *SDL_sensor_lock = NULL; /* This needs to support recursive locks */
static SDL_atomic_t SDL_next_sensor_instance_id;
-static void
+void
SDL_LockSensors(void)
{
if (SDL_sensor_lock) {
@@ -56,7 +58,7 @@
}
}
-static void
+void
SDL_UnlockSensors(void)
{
if (SDL_sensor_lock) {
@@ -174,7 +176,7 @@
return type;
}
-SDL_SensorType
+int
SDL_SensorGetDeviceNonPortableType(int device_index)
{
SDL_SensorDriver *driver;
--
Gitblit v1.9.3