From 521bf6fba5bb414d6dd9832ac68aa8f79d51343b Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 1 Apr 2017 18:02:10 +0200 Subject: [PATCH] Checking the bitmask properly.. --- patcher/ControllerPatcherUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patcher/ControllerPatcherUtils.cpp b/patcher/ControllerPatcherUtils.cpp index efb9697..5194e8e 100644 --- a/patcher/ControllerPatcherUtils.cpp +++ b/patcher/ControllerPatcherUtils.cpp @@ -238,7 +238,7 @@ CONTROLLER_PATCHER_RESULT_OR_ERROR ControllerPatcherUtils::isValueSet(HID_Data * result = 1; } }else{ - if(cur_data[config_controller[deviceslot][cur_config][0]] & config_controller[deviceslot][cur_config][1]){ + if((cur_data[config_controller[deviceslot][cur_config][0]] & config_controller[deviceslot][cur_config][1]) == config_controller[deviceslot][cur_config][1]){ result = 1; } }