Merge pull request #10525 from libretro/set_gamepad_bitwise_fix

Added small fix to set_gamepad_input_override bit logic.
This commit is contained in:
Autechre 2020-04-27 20:28:54 +02:00 committed by GitHub
commit 39aae2872d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31160,7 +31160,7 @@ void set_gamepad_input_override(unsigned i, bool val)
if (val)
gamepad_input_override = gamepad_input_override | (1<<i);
else
gamepad_input_override = gamepad_input_override & ((1<<i) ^ 0);
gamepad_input_override = gamepad_input_override & ((1<<i) ^ (~0));
}
void reset_gamepad_input_override(void)