view src/joystick/iphoneos/SDLUIAccelerationDelegate.h @ 2398:92de010929a6 gsoc2008_iphone

Fixed path to plist in fireworks target.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 18 Jul 2008 21:53:52 +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