I’m interested to know if @anatol‘s Accelerometer class (and therefore SDL’s accelerometer joystick) works consistently across all devices, particularly with respect to axis orientation. I have created this :
https://github.com/arpie42/spinner
and would be grateful if people could compile and test on various android and ios devices and post your results here.
If all goes well, the spinning top should remain upright compared to the physical world, regardless of your device orientation.
All comments, criticism, requests for changes will be gratefully received.
Tested successfully here on a Samsung S7 and a Lenovo Yoga Book tablet. That’s all I have!
Also, @mark, if you see this by some random chance, I think this demo if ripe for use as a banana – feel free to add it to the monkey2 repo.