SDL_vitatouch.c: Fixed the incorrect touch device IDs
- Begining of device ID with 0 violates the SDL's specification that means the 0 is an error, invalid, failure, etc. But on Vita here it's an actual device...
- Replacing 0 and 1 with 1 and 2 to resolve this violation.
(cherry picked from commit dd6c663918)
This commit is contained in:
1 parent
95aed34a69
commit
847a6cce96
1 file changed
+2
-2
@@ -70,8 +70,8 @@ void VITA_InitTouch(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support passing both front and back touch devices in events
|
// Support passing both front and back touch devices in events
|
||||||
SDL_AddTouch((SDL_TouchID)0, SDL_TOUCH_DEVICE_DIRECT, "Front");
|
SDL_AddTouch((SDL_TouchID)1, SDL_TOUCH_DEVICE_DIRECT, "Front");
|
||||||
SDL_AddTouch((SDL_TouchID)1, SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, "Back");
|
SDL_AddTouch((SDL_TouchID)2, SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, "Back");
|
||||||
}
|
}
|
||||||
|
|
||||||
void VITA_QuitTouch(void)
|
void VITA_QuitTouch(void)
|
||||||
|
|||||||
Reference in new issue
Block a user