mirror of
https://github.com/yawut/SDL.git
synced 2026-09-09 17:46:31 -05:00
Correct usage of SDL_AddDollarGesture (return value >= 0 on success)
This commit is contained in:
@@ -227,7 +227,8 @@ int SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src)
|
||||
|
||||
if (touchId >= 0) {
|
||||
//printf("Adding loaded gesture to 1 touch\n");
|
||||
if (SDL_AddDollarGesture(touch,templ.path)) loaded++;
|
||||
if (SDL_AddDollarGesture(touch, templ.path) >= 0)
|
||||
loaded++;
|
||||
}
|
||||
else {
|
||||
//printf("Adding to: %i touches\n",SDL_numGestureTouches);
|
||||
|
||||
Reference in New Issue
Block a user