From 83b064108ecf49bf775ac636183c5f89672ae1f9 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 3 May 2017 21:44:08 +0200 Subject: [PATCH] Fix: Using multiple controllers of the same type now possible again --- ControllerPatcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ControllerPatcher.cpp b/ControllerPatcher.cpp index e835076..291e35c 100644 --- a/ControllerPatcher.cpp +++ b/ControllerPatcher.cpp @@ -769,15 +769,16 @@ CONTROLLER_PATCHER_RESULT_OR_ERROR ControllerPatcher::gettingInputAllDevices(Inp deviceinfo->vidpid.vid = config_controller[deviceslot][CONTRPS_VID][0] * 0x100 + config_controller[deviceslot][CONTRPS_VID][1]; deviceinfo->vidpid.pid = config_controller[deviceslot][CONTRPS_PID][0] * 0x100 + config_controller[deviceslot][CONTRPS_PID][1]; + /* not needed if(config_controller[deviceslot][CONTRPS_PAD_COUNT][0] != CONTROLLER_PATCHER_INVALIDVALUE){ deviceinfo->pad_count = config_controller[deviceslot][CONTRPS_PAD_COUNT][1]; }else{ deviceinfo->pad_count = HID_MAX_PADS_COUNT; - } + }*/ s32 buttons_hold = 0; - for(s32 pad = 0;padpad_count;pad++){ + for(s32 pad = 0;pad