mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 00:42:48 +00:00
Fix default config and the latest bug with input hiearchy
This commit is contained in:
parent
f5f988d63e
commit
3d4db91225
@ -756,9 +756,9 @@ touchpad = g;
|
|||||||
|
|
||||||
#Transform
|
#Transform
|
||||||
l1 = rightbutton, lshift;
|
l1 = rightbutton, lshift;
|
||||||
#Shoot
|
|
||||||
r1 = leftbutton;
|
|
||||||
#Light attack
|
#Light attack
|
||||||
|
r1 = leftbutton;
|
||||||
|
#Shoot
|
||||||
l2 = rightbutton;
|
l2 = rightbutton;
|
||||||
#Heavy attack
|
#Heavy attack
|
||||||
r2 = leftbutton, lshift;
|
r2 = leftbutton, lshift;
|
||||||
|
@ -461,11 +461,10 @@ bool IsInputActive(const InputBinding& i) {
|
|||||||
// Search for the current key in pressed_keys starting from the last checked position
|
// Search for the current key in pressed_keys starting from the last checked position
|
||||||
while (pressed_it != pressed_end && pressed_it->first <= key) {
|
while (pressed_it != pressed_end && pressed_it->first <= key) {
|
||||||
if (pressed_it->first == key) {
|
if (pressed_it->first == key) {
|
||||||
if (!pressed_it->second) {
|
|
||||||
key_found = true;
|
key_found = true;
|
||||||
flags_to_set.push_back(
|
flags_to_set.push_back(&pressed_it->second);
|
||||||
&pressed_it->second); // Collect pointer if flag is not already set
|
|
||||||
}
|
|
||||||
++pressed_it; // Move to the next key in pressed_keys
|
++pressed_it; // Move to the next key in pressed_keys
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -479,7 +478,13 @@ bool IsInputActive(const InputBinding& i) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set all flags now that we've verified all keys are active
|
bool is_fully_blocked = true;
|
||||||
|
for (bool* flag : flags_to_set) {
|
||||||
|
is_fully_blocked &= *flag;
|
||||||
|
}
|
||||||
|
if(is_fully_blocked) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (bool* flag : flags_to_set) {
|
for (bool* flag : flags_to_set) {
|
||||||
*flag = true;
|
*flag = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user