mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-25 05:26:53 +01:00
Checking the bitmask properly..
This commit is contained in:
parent
b7d529cce5
commit
521bf6fba5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user