- DESCRIPTION
- Contains information about a specific acceleration event. Override on(AccelerationEvent) in your Screen subclass to handle accleration events.
- Members (read-only):
controller_id
Which controller is being used. This will be 1 on the iPhone;
it can be 1..4 on the Wii.
x, y, z
The acceleration on the x, y, and z axes.
-
Methods (defined in class AccelerationEventManager):
orientation().RollPitchYaw
Returns a RollPitchYaw compound (containing roll,pitch,yaw:Radians)
with the orientation of the device assuming that gravity is
the primary force acting on the device (in other words this
doesn't work if it's being shaken violently).
- PROPERTIES
- controller_id : Int32
- x : Real64
- y : Real64
- z : Real64
- METHODS
- init(Int32 controller_id,Real64 x,Real64 y,Real64 z).AccelerationEvent
- init(AccelerationEvent AccelerationEvent).AccelerationEvent
|