Skip to content

Commit 9a6a414

Browse files
committed
extract capabilities for 360 controllers over libusb
1 parent ae8a64c commit 9a6a414

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/joystick/hidapi/SDL_hidapi_xbox360.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ static bool HIDAPI_DriverXbox360_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joy
231231
joystick->naxes = SDL_GAMEPAD_AXIS_COUNT;
232232
joystick->nhats = 1;
233233

234-
#ifdef HAVE_LIBUSB
235-
234+
#ifdef HAVE_LIBUSB
236235
// Fetch capabilities from the controller
237236
SDL_LibUSBContext *libusb_ctx;
238237
if (SDL_InitLibUSB(&libusb_ctx)) {

0 commit comments

Comments
 (0)