comparison src/joystick/iphoneos/SDLUIAccelerationDelegate.h @ 2362:44fc2537ff9e gsoc2008_iphone

These files contain the specification for a class which receives updates from the iPhone accelerometer. The class holds the accelerometer information, and is queried by SDL_sysjoystick.m.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 18 Jul 2008 17:46:17 +0000
parents
children 78bddf0c0fa2
comparison
equal deleted inserted replaced
2361:ba39d5af12a7 2362:44fc2537ff9e
1 //
2 // SDLUIAccelerationDelegate.h
3 // iPodSDL
4 //
5 // Created by Holmes Futrell on 6/21/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import "SDL_stdinc.h"
11
12 @interface SDLUIAccelerationDelegate: NSObject <UIAccelerometerDelegate> {
13
14 UIAccelerationValue x, y, z;
15 //NSTimeInterval timestamp;
16 BOOL isRunning;
17 BOOL hasNewData;
18
19 }
20
21 +(SDLUIAccelerationDelegate *)sharedDelegate;
22 -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration;
23 -(void)getLastOrientation:(Sint16 *)data;
24 -(void)startup;
25 -(void)shutdown;
26 -(BOOL)isRunning;
27 -(BOOL)hasNewData;
28 -(void)setHasNewData:(BOOL)value;
29
30 @end