Initial implementation of accelerometer event handling (untested)