Earlier this evening, I implemented accelerometer support for Slick-AE after TheVapourRub asked whether it could be added. However, in bad practice, I pushed the implementation to development before posting it here.
This is the idea behind the implementation:
-A com.badlogic.gdx.Input field (with getters and setters) is added to the Slick-AE org.newdawn.slick.Input class, as well as the methods getAccelerometerX(), getAccelerometerY(), getAccelerometerZ(), getPitch(), and getRoll(). All of the new methods will return the corosponding com.badlogic.gdx.Input call returns from the new field, unless the new field is null.
-A line is added to the GDXContainer class immediately after the inputhandler is added to the libgdx input. This line sets the com.badlogic.gdx.Input field in the game container Input to the current application Input. (it hurts having 2 classes called input);
Since I carelessly pushed this to dev already, you can see the exact lines that were added for clarification. As with all Slick-AE changes, this does not effect the standard Slick library.
"Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"