Commit 319a4869 authored by retro-wertz's avatar retro-wertz
Browse files

Libretro: Do not allow opposing directions

parent 2c46522e
......@@ -914,6 +914,12 @@ uint32_t systemReadJoypad(int which)
J |= input_cb(which, RETRO_DEVICE_JOYPAD, 0, binds[i]) << i;
}
// Do not allow opposing directions
if ((J & 0x30) == 0x30)
J &= ~(0x30);
else if ((J & 0xC0) == 0xC0)
J &= ~(0xC0);
return J;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment