Mobile
The Mobile module exposes events related to mobile input.
Obtain Mobile¶
1 | |
Methods¶
GetDeviceAcceleration()¶
Get the acceleration of the device.
1 | |
GetDeviceGravity()¶
Get the gravitational force on the device.
1 | |
GetDeviceRotation()¶
Get the rotation of the device.
1 | |
Events¶
TouchStarted¶
Fires when a touch is started.
1 2 3 | |
TouchEnded¶
Fires when a touch ends.
1 2 3 | |
TouchMoved¶
Fires when a touch moves.
1 2 3 | |
TouchTapInWorld¶
Fires when a touch tap is registered in the 3D world.
1 2 3 | |
TouchPinch¶
Fires when a touch pinch is registered.
1 2 3 | |
TouchLongPress¶
Fires when a long press is registered.
1 2 3 | |
TouchPan¶
Fires when a pan is registered.
1 2 3 | |
TouchRotate¶
Fires when a rotation is registered.
1 2 3 | |
TouchSwipe¶
Fires when a swipe is registered.
1 2 3 | |
See SwipeDirection for possible values.
TouchTap¶
Fires when a tap is registered.
1 2 3 | |
DeviceAccelerationChanged¶
Fires when the device's acceleration changes.
1 2 3 | |
DeviceGravityChanged¶
Fires when the device's gravitational pull changes.
1 2 3 | |
DeviceRotationChanged¶
Fires when the device's rotation changes.
1 2 3 | |