Correct usage of SDL_AddDollarGesture (return value >= 0 on success)
This commit is contained in:
parent
9f6e4ab9ab
commit
9e6ee9e79a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue