I'm making a game for Android and iOS using OpenGL ES and SDL in C++ native code for cross-platformability and more efficient code. Though I am currently only testing on Android. (Inefficient code is a a BIG pet pevy of mine and a battery sucker.) OpenGL ES is for the graphics and SDL for the touch sensors, sound, OS events, timers, and to hold OpenGL ES. But there is a problem, how do I get tilt input with C/C++ code as I want to avoid the JNI as much as possible.
Can anyone help me out?