Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitview.h @ 4660:b15e7017409b
Added Iphone support (untested)
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Mon, 12 Jul 2010 22:03:25 -0400 |
parents | f7b03b6838cb |
children | 03dcb795c583 |
comparison
equal
deleted
inserted
replaced
4659:063b9455bd1a | 4660:b15e7017409b |
---|---|
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 #import <UIKit/UIKit.h> | 23 #import <UIKit/UIKit.h> |
24 #include "SDL_stdinc.h" | 24 #include "SDL_stdinc.h" |
25 #include "SDL_mouse.h" | |
26 #include "SDL_mouse_c.h" | |
27 #include "SDL_events.h" | 25 #include "SDL_events.h" |
28 | 26 |
29 #if SDL_IPHONE_MULTIPLE_MICE | 27 #if SDL_IPHONE_MULTIPLE_MICE |
30 #define MAX_SIMULTANEOUS_TOUCHES 5 | 28 #define MAX_SIMULTANEOUS_TOUCHES 5 |
31 #else | 29 #else |
36 #if SDL_IPHONE_KEYBOARD | 34 #if SDL_IPHONE_KEYBOARD |
37 @interface SDL_uikitview : UIView<UITextFieldDelegate> { | 35 @interface SDL_uikitview : UIView<UITextFieldDelegate> { |
38 #else | 36 #else |
39 @interface SDL_uikitview : UIView { | 37 @interface SDL_uikitview : UIView { |
40 #endif | 38 #endif |
41 | 39 |
40 #if FIXME_MULTITOUCH | |
42 SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES]; | 41 SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES]; |
42 #endif | |
43 | |
44 #if FIXED_MULTITOUCH | |
45 int touchId; | |
46 #endif | |
43 | 47 |
44 #if SDL_IPHONE_KEYBOARD | 48 #if SDL_IPHONE_KEYBOARD |
45 UITextField *textField; | 49 UITextField *textField; |
46 BOOL keyboardVisible; | 50 BOOL keyboardVisible; |
47 #endif | 51 #endif |