Skip to content

Commit 6493be9

Browse files
committed
Removed SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
1 parent 641deb9 commit 6493be9

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

src/joystick/hidapi/SDL_hidapi_flydigi.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,22 +294,7 @@ static bool HIDAPI_DriverFlydigi_InitControllerV2(SDL_HIDAPI_Device *device)
294294
if (data[10] == 1) {
295295
ctx->available = true;
296296
} else {
297-
#ifdef SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
298-
// The FlyDigi Space Station app isn't available, we need to enable this ourselves
299-
Uint8 enable_acquire[] = {
300-
FLYDIGI_V2_CMD_REPORT_ID,
301-
FLYDIGI_V2_MAGIC1,
302-
FLYDIGI_V2_MAGIC2,
303-
FLYDIGI_V2_SET_STATUS_COMMAND,
304-
0x07, 0xff, 0xff, 0xff, 0xff, 0x01, 0x15
305-
};
306-
if (SDL_hid_write(device->dev, enable_acquire, sizeof(enable_acquire)) < 0) {
307-
return SDL_SetError("Couldn't set controller status");
308-
}
309-
#else
310297
// Click "Allow third-party apps to take over mappings" in the FlyDigi Space Station app
311-
312-
#endif // SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
313298
}
314299
return true;
315300
}

src/joystick/hidapi/SDL_hidapi_flydigi.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,3 @@ typedef enum
3636
SDL_FLYDIGI_VADER4_PRO,
3737
} SDL_FlyDigiControllerType;
3838

39-
#ifndef SDL_PLATFORM_WINDOWS
40-
// The FlyDigi Space Station app isn't available on this platform
41-
#define SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
42-
#endif

src/joystick/hidapi/SDL_hidapijoystick.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,9 +1305,6 @@ bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version,
13051305
*/
13061306
SDL_LockJoysticks();
13071307
for (device = SDL_HIDAPI_devices; device; device = device->next) {
1308-
#ifdef SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
1309-
// The HIDAPI functionality will always be available, so ignore the XInput interface
1310-
#else
13111308
// The HIDAPI functionality will be available when the FlyDigi Space Station app has
13121309
// enabled third party controller mapping, so the driver needs to be active to watch
13131310
// for that change. Since this is dynamic and we don't have a way to re-trigger device
@@ -1317,7 +1314,6 @@ bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version,
13171314
if (device->vendor_id == USB_VENDOR_FLYDIGI_V2) {
13181315
continue;
13191316
}
1320-
#endif // SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
13211317

13221318
if (device->driver &&
13231319
HIDAPI_IsEquivalentToDevice(vendor_id, product_id, device)) {

0 commit comments

Comments
 (0)