Mercurial > sdl-ios-xcode
view src/joystick/iphoneos/SDLUIAccelerationDelegate.h @ 2423:74d25e48d54d gsoc2008_iphone
Added conditional compilation line #ifdef __IPHONE_OS__ to prevent other platforms from including iPhone specific line of code that is used to toggle keyboard visibility.
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Fri, 15 Aug 2008 00:38:49 +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