I have a menu that like a roulette, it's spinning like a whell.
To catch the events i'm using touch began/move
.
How can i add it an acceleration
? I want to register to an acceleration
event, when user touch an item and slide??
I have a menu that like a roulette, it's spinning like a whell.
To catch the events i'm using touch began/move
.
How can i add it an acceleration
? I want to register to an acceleration
event, when user touch an item and slide??
Listing 4-4 Receiving an accelerometer event
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
{
UIAccelerationValue x, y, z;
x = acceleration.x;
y = acceleration.y;
z = acceleration.z;
// Do something with the values.
}