Added accelerometer support to InputSystem. Fixes #35.