comparison src/video/uikit/SDL_uikitview.h @ 4662:3c4e0130c9b1

Added alternative finger tracking method. Still prefer IPHONE_TOUCH_EFFICIENT_DANGEROUS.
author Jim Grandpre <jim.tla@gmail.com>
date Tue, 13 Jul 2010 18:31:09 -0400
parents 03dcb795c583
children 99b4560b7aa1
comparison
equal deleted inserted replaced
4661:03dcb795c583 4662:3c4e0130c9b1
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details. 13 Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU Lesser General Public 15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software 16 License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 17
19 Sam Lantinga 18 Sam Lantinga
20 slouken@libsdl.org 19 slouken@libsdl.org
21 */ 20 */
22 21
23 #import <UIKit/UIKit.h> 22 #import <UIKit/UIKit.h>
24 #include "SDL_stdinc.h" 23 #include "SDL_stdinc.h"
25 #include "SDL_events.h" 24 #include "SDL_events.h"
26 25
27 #if SDL_IPHONE_MULTIPLE_MICE 26 #ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
28 #define MAX_SIMULTANEOUS_TOUCHES 5 27 #define MAX_SIMULTANEOUS_TOUCHES 5
29 #else
30 #define MAX_SIMULTANEOUS_TOUCHES 1
31 #endif 28 #endif
32 29
33 /* *INDENT-OFF* */ 30 /* *INDENT-OFF* */
34 #if SDL_IPHONE_KEYBOARD 31 #if SDL_IPHONE_KEYBOARD
35 @interface SDL_uikitview : UIView<UITextFieldDelegate> { 32 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
37 @interface SDL_uikitview : UIView { 34 @interface SDL_uikitview : UIView {
38 #endif 35 #endif
39 36
40 #if FIXED_MULTITOUCH 37 #if FIXED_MULTITOUCH
41 int touchId; 38 int touchId;
39 #ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
40 UITouch *finger[MAX_SIMULTANEOUS_TOUCHES];
41 #endif
42 #endif 42 #endif
43 43
44 #if SDL_IPHONE_KEYBOARD 44 #if SDL_IPHONE_KEYBOARD
45 UITextField *textField; 45 UITextField *textField;
46 BOOL keyboardVisible; 46 BOOL keyboardVisible;