(AGK version: 108.24)
Submitted: 2015-12-25 17:57:08
// Project: SensorApp 
// Created: 2015-12-25

// set window properties
SetWindowTitle( "SensorApp" )
SetWindowSize( 1024, 768, 0 )

// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )

if GetAccelerometerExists()=1
	Accelerometer$="Accelerometer exists"
	ACC=1
else
	Accelerometer$="No Accelerometer avaliable"
	ACC=0
endif


do
    
	print("Date	: " + GetCurrentDate())
	print("Time	: " + GetCurrentTime())
	Print("FPS	 : " + str(ScreenFPS()) )

	print(Accelerometer$)

	if (ACC=1)
		Print("AccelX : " + str( GetRawAccelX() ))
		Print("AccelY : " + str( GetRawAccelY() ))
		Print("AccelZ : " + str( GetRawAccelZ() ))
	EndIf
	
    Sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.