input: rework spinner code.

This commit is contained in:
sorgelig
2020-03-02 00:19:25 +08:00
parent 1a929a4fff
commit 07c0fe63df
2 changed files with 61 additions and 33 deletions

View File

@@ -942,7 +942,7 @@ int user_io_get_joyswap()
void user_io_analog_joystick(unsigned char joystick, char valueX, char valueY)
{
uint8_t joy = (joystick > 1 || !joyswap) ? joystick : (joystick >= 7) ? (joystick ^ 16) : (joystick ^ 1);
uint8_t joy = (joystick > 1 || !joyswap) ? joystick : (joystick >= 15) ? (joystick ^ 16) : (joystick ^ 1);
if (core_type == CORE_TYPE_8BIT)
{