Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 26
Registered: ‎10-03-2012
My Device: Playbook
My Carrier: lebara

Sensor.h (replacing accelerometer.h)

[ Edited ]

My code has previously been using accelerometer.h   but I've updated the code to use the new sensor api.   However, my game has now swapped left/right and it's a lot more sensitive to change, i.e. it's a bit jumpy.  Any ideas why?  I've kept the same rate.


Also, which of SENSOR_LINEAR_ACCEL_READING or SENSOR_ACCELEROMETER_READING should I use to match the accelerometer api's readings?   (that is, was accelerometer.h using log or linear scale?)