Fixed gestureMulti. Disabled dollar gesture temporarily.
This commit is contained in:
parent
c219144751
commit
bcd4b4df6f
6 changed files with 188 additions and 140 deletions
|
@ -414,11 +414,14 @@ int main(int argc, char* argv[])
|
|||
*/
|
||||
break;
|
||||
case SDL_MULTIGESTURE:
|
||||
/*
|
||||
printf("Multi Gesture: x = %f, y = %f, dAng = %f, dR = %f\n",
|
||||
event.mgesture.x,
|
||||
event.mgesture.y,
|
||||
event.mgesture.dTheta,
|
||||
event.mgesture.dDist);
|
||||
printf("MG: numDownTouch = %i\n",event.mgesture.numFingers);
|
||||
*/
|
||||
knob.p.x = event.mgesture.x;
|
||||
knob.p.y = event.mgesture.y;
|
||||
knob.ang += event.mgesture.dTheta;
|
||||
|
@ -435,9 +438,9 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
}
|
||||
DrawScreen(screen,h);
|
||||
for(i = 0; i < 256; i++)
|
||||
if(keystat[i])
|
||||
printf("Key %i down\n",i);
|
||||
//for(i = 0; i < 256; i++)
|
||||
// if(keystat[i])
|
||||
// printf("Key %i down\n",i);
|
||||
}
|
||||
SDL_Quit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue