--jpMotion API jpMotion.activate ( sUserToken, sActivationKey ) nYaw, nPitch, nRoll = jpMotion.getAttitude ( ) x, y, z = jpMotion.getGravity ( ) x, y, z = jpMotion.getMagneticField ( ) x, y, z = jpMotion.getRotationRate ( ) nUpdateInterval = jpMotion.getUpdateInterval ( ) x, y, z = jpMotion.getUserAcceleration ( ) bActive = jpMotion.isActive ( ) bAvailable = jpMotion.isAvailable ( ) jpMotion.setUpdateInterval ( nInterval ) jpMotion.startUpdates ( ) jpMotion.stopUpdates ( )
This plugin provides everything you want to know about the device motion such as: