comparison src/video/uikit/SDL_uikitview.h @ 2353:07acabba25d9 gsoc2008_iphone

SDL_uikitview is just a generic view class which SDL_uikitopenglview inherits from. The functionality found in this class relates to (right now) mouse/touch input support. The reason for putting it here is that if someone wanted to write a render driver for iPhone based around CoreGraphics rather than OpenGL ES, they could make their Core Graphics view inherit from this class as well.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Thu, 17 Jul 2008 22:43:09 +0000
parents
children e9a1eed243c9
comparison
equal deleted inserted replaced
2352:1ecbeff9eb4c 2353:07acabba25d9
1 //
2 // SDL_uikitview.h
3 // iPodSDL
4 //
5 // Created by Holmes Futrell on 6/23/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #include "SDL_stdinc.h"
11 #include "SDL_mouse.h"
12 #include "SDL_mouse_c.h"
13 #include "SDL_events.h"
14
15 #define MAX_SIMULTANEOUS_TOUCHES 5
16
17 @interface SDL_uikitview : UIView {
18
19 SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES];
20
21 }
22 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
23 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
24 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
25
26 @end