input: INI option to use all mice as spinners.

This commit is contained in:
sorgelig
2020-11-16 19:22:55 +08:00
parent 933b7f57d0
commit 82f735d799
2 changed files with 8 additions and 2 deletions

View File

@@ -2763,7 +2763,7 @@ void mergedevs()
}
//copy missing fields to mouseX
for (int i = 0; i < NUMDEV; i++) if (input[i].mouse)
for (int i = 0; i < NUMDEV; i++) if (input[i].mouse && input[i].quirk != QUIRK_MSSP)
{
for (int j = 0; j < NUMDEV; j++) if (!input[j].mouse)
{
@@ -2929,6 +2929,12 @@ int input_test(int getchar)
}
}
//All mice as spinners
if (input[n].mouse && cfg.spinner_vid == 0xFFFF && cfg.spinner_pid == 0xFFFF)
{
input[n].quirk = QUIRK_MSSP;
}
if (strcasestr(input[n].name, "Wiimote") && input[n].vid == 1 && input[n].pid == 1)
{
input[n].quirk = QUIRK_CWIID;