From f40bf44928bb8212f3ff16cb36b4e65205fa0c28 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 25 Jun 2025 18:50:28 -0700
Subject: [PATCH] Removed unnecessary include
---
src/joystick/hidapi/SDL_hidapi_8bitdo.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/joystick/hidapi/SDL_hidapi_8bitdo.c b/src/joystick/hidapi/SDL_hidapi_8bitdo.c
index c556e0a65a7ab..09614f6cdf8b4 100644
--- a/src/joystick/hidapi/SDL_hidapi_8bitdo.c
+++ b/src/joystick/hidapi/SDL_hidapi_8bitdo.c
@@ -22,7 +22,6 @@
#ifdef SDL_JOYSTICK_HIDAPI
-#include "../../SDL_hints_c.h"
#include "../SDL_sysjoystick.h"
#include "SDL_hidapijoystick_c.h"
#include "SDL_hidapi_rumble.h"
@@ -235,8 +234,8 @@ static Uint64 HIDAPI_Driver8BitDo_GetIMURateForProductID(SDL_HIDAPI_Device *devi
// TODO: If sensor time stamp is sent, these fixed settings from observation can be replaced
switch (device->product_id) {
// Note, This is estimated by observation of Bluetooth packets received in the testcontroller tool
- case USB_PRODUCT_8BITDO_SN30_PRO_BT:
- case USB_PRODUCT_8BITDO_SF30_PRO_BT:
+ case USB_PRODUCT_8BITDO_SN30_PRO_BT:
+ case USB_PRODUCT_8BITDO_SF30_PRO_BT:
return 90; // Observed to be anywhere between 60-90 hz. Possibly lossy in current state
case USB_PRODUCT_8BITDO_SF30_PRO:
case USB_PRODUCT_8BITDO_SN30_PRO:
@@ -569,7 +568,7 @@ static void HIDAPI_Driver8BitDo_HandleStatePacket(SDL_Joystick *joystick, SDL_Dr
delta = (SDL_MAX_UINT32 - ctx->last_tick + tick + 1);
}
ctx->sensor_timestamp_interval = SDL_US_TO_NS(delta);
- }
+ }
ctx->last_tick = tick;
}