input: correction for DS4/DS5.

This commit is contained in:
sorgelig
2021-07-06 05:16:13 +08:00
parent e41469e85e
commit ebf0124c77

View File

@@ -3698,10 +3698,10 @@ int input_test(int getchar)
if (input[i].bind >= 0) edev = input[i].bind; // mouse to event
if (input[edev].bind >= 0) dev = input[edev].bind; // event to base device
if (input[i].quirk == QUIRK_DS4TOUCH && input[dev].lightgun)
if ((input[i].quirk == QUIRK_DS4TOUCH || input[i].quirk == QUIRK_DS4))
{
//disable DS4 mouse in lightgun mode
continue;
if (input[dev].lightgun) continue;
}
if (input[i].quirk == QUIRK_TOUCHGUN)