Skip to content

Commit

Permalink
add "i" shortcut to testgesture tool to log # of fingers down on the …
Browse files Browse the repository at this point in the history
…touch devices.
  • Loading branch information
urkle committed Nov 23, 2014
1 parent d7cc6fa commit 8c9341b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/testgesture.c
Expand Up @@ -215,6 +215,15 @@ int main(int argc, char* argv[])
case SDL_KEYDOWN:
switch (event.key.keysym.sym)
{
case SDLK_i:
{
int i;
for (i = 0; i < SDL_GetNumTouchDevices(); ++i) {
SDL_TouchID id = SDL_GetTouchDevice(i);
SDL_Log("Fingers Down on device %"SDL_PRIs64": %d", id, SDL_GetNumTouchFingers(id));
}
break;
}
case SDLK_SPACE:
SDL_RecordGesture(-1);
break;
Expand Down

0 comments on commit 8c9341b

Please sign in to comment.