From c618f38bc0c494ab5fbd6753c67f0fbd9077eb83 Mon Sep 17 00:00:00 2001 From: emoose Date: Wed, 12 Dec 2018 01:42:36 +0000 Subject: [PATCH] Oops, accidentally removed some critical code... --- Xb2XInput/XboxController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Xb2XInput/XboxController.cpp b/Xb2XInput/XboxController.cpp index c1bc6c7..6581d55 100644 --- a/Xb2XInput/XboxController.cpp +++ b/Xb2XInput/XboxController.cpp @@ -104,6 +104,10 @@ libusb_device_handle* XboxController::OpenDevice() if (exists) continue; + ret = libusb_open_device_with_vid_pid(NULL, desc.idVendor, desc.idProduct); + if (!ret) + continue; + int port_num = 4; for (int i = 0; i < 4; i++) {