mobilebasic/Examples/Sensors/rotationvector.bas

10 lines
315 B
QBasic
Raw Permalink Normal View History

2021-03-29 19:43:07 +03:00
SUB MAIN
IF (IsRotationVectorAvailable()) THEN
WHILE (TRUE)
PRINT "X=" + STRING(getRotationVectorX()) + ", Y=" + STRING(getRotationVectorY()) + ", Z=" + STRING(getRotationVectorZ())
SLEEP 1000
END WHILE
ELSE
PRINT "Rotation Vector Sensor is not available on this device"
END IF
END SUB