Skip to content

Commit c618f38

Browse files
committed
Oops, accidentally removed some critical code...
1 parent c8f09ee commit c618f38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Xb2XInput/XboxController.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ libusb_device_handle* XboxController::OpenDevice()
104104
if (exists)
105105
continue;
106106

107+
ret = libusb_open_device_with_vid_pid(NULL, desc.idVendor, desc.idProduct);
108+
if (!ret)
109+
continue;
110+
107111
int port_num = 4;
108112
for (int i = 0; i < 4; i++)
109113
{

0 commit comments

Comments
 (0)