src/video/uikit/SDL_uikitview.h
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Thu, 17 Jul 2008 22:43:09 +0000
branchgsoc2008_iphone
changeset 2353 07acabba25d9
child 2403 e9a1eed243c9
permissions -rw-r--r--
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.
hfutrell@2353
     1
//
hfutrell@2353
     2
//  SDL_uikitview.h
hfutrell@2353
     3
//  iPodSDL
hfutrell@2353
     4
//
hfutrell@2353
     5
//  Created by Holmes Futrell on 6/23/08.
hfutrell@2353
     6
//  Copyright 2008 __MyCompanyName__. All rights reserved.
hfutrell@2353
     7
//
hfutrell@2353
     8
hfutrell@2353
     9
#import <UIKit/UIKit.h>
hfutrell@2353
    10
#include "SDL_stdinc.h"
hfutrell@2353
    11
#include "SDL_mouse.h"
hfutrell@2353
    12
#include "SDL_mouse_c.h"
hfutrell@2353
    13
#include "SDL_events.h"
hfutrell@2353
    14
hfutrell@2353
    15
#define MAX_SIMULTANEOUS_TOUCHES 5
hfutrell@2353
    16
hfutrell@2353
    17
@interface SDL_uikitview : UIView {
hfutrell@2353
    18
		
hfutrell@2353
    19
	SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES];
hfutrell@2353
    20
	
hfutrell@2353
    21
}
hfutrell@2353
    22
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
hfutrell@2353
    23
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
hfutrell@2353
    24
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
hfutrell@2353
    25
hfutrell@2353
    26
@end