Made the A/B and X/Y button swap setting not affect keyboard input

This commit is contained in:
Leon Styhre 2024-01-17 22:19:15 +01:00
parent dcb2aaedef
commit 0e636f1bb3

View file

@ -148,7 +148,7 @@ bool InputConfig::getInputByName(const std::string& name, Input* result)
{
std::string nameInput {name};
if (Settings::getInstance()->getBool("InputSwapButtons")) {
if (Settings::getInstance()->getBool("InputSwapButtons") && mDeviceId != DEVICE_KEYBOARD) {
if (name == "a")
nameInput = "b";
else if (name == "b")