Mercurial > sdl-ios-xcode
comparison touchTest/gestureSDLTest.c @ 4689:f9ab8df6d45a
Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Sun, 15 Aug 2010 00:36:28 -0400 |
parents | 494f71f57a80 |
children |
comparison
equal
deleted
inserted
replaced
4688:494f71f57a80 | 4689:f9ab8df6d45a |
---|---|
1 /* Usage: | |
2 * Spacebar to begin recording a gesture on all touches. | |
3 * s to save all touches into "./gestureSave" | |
4 * l to load all touches from "./gestureSave" | |
5 */ | |
6 | |
1 #include <stdio.h> | 7 #include <stdio.h> |
2 #include <SDL.h> | 8 #include <SDL.h> |
3 #include <math.h> | 9 #include <math.h> |
4 #include <SDL_touch.h> | 10 #include <SDL_touch.h> |
5 #include <SDL_gesture.h> | 11 #include <SDL_gesture.h> |
12 | |
6 | 13 |
7 /* Make sure we have good macros for printing 32 and 64 bit values */ | 14 /* Make sure we have good macros for printing 32 and 64 bit values */ |
8 #ifndef PRIs32 | 15 #ifndef PRIs32 |
9 #define PRIs32 "d" | 16 #define PRIs32 "d" |
10 #endif | 17 #endif |