view src/joystick/iphoneos/SDLUIAccelerationDelegate.h @ 2376:756e6e35d029 gsoc2008_iphone

just a readme for the files located in this directory
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 18 Jul 2008 19:21:27 +0000
parents 44fc2537ff9e
children 78bddf0c0fa2
line wrap: on
line source

//
//  SDLUIAccelerationDelegate.h
//  iPodSDL
//
//  Created by Holmes Futrell on 6/21/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDL_stdinc.h"

@interface SDLUIAccelerationDelegate: NSObject <UIAccelerometerDelegate> {

	UIAccelerationValue x, y, z;
	//NSTimeInterval timestamp;
	BOOL isRunning;
	BOOL hasNewData;
	
}

+(SDLUIAccelerationDelegate *)sharedDelegate;
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration;
-(void)getLastOrientation:(Sint16 *)data;
-(void)startup;
-(void)shutdown;
-(BOOL)isRunning;
-(BOOL)hasNewData;
-(void)setHasNewData:(BOOL)value;

@end