Accelerometer lazarus / 43-Android ---------------------------------------------------------------------- Daniello · 2012-06-26 23:11 I'm trying to get access to the accelerometer. Since sensor.h was not translated to Pascal yet, I translated it myself. Here it is: http://pastebin.com/Qb2Ke35L However my application seems to crash when I call ASensorEventQueue_getEvents() I'm not sure if I translated the ASensorEvent struct correctly, could anyone check? ---------------------------------------------------------------------- felipemdc · 2012-06-27 05:51 The LCL has support for accelerometer and the example application shows how to use it. It is in the Form2. I utilized JNI to implement it. See the documentation: http://wiki.lazarus.freepascal.org/LazDeviceAPIs#Accelerometer ---------------------------------------------------------------------- Daniello · 2012-06-27 16:02 Thanks Felipe, I'll look into it