Hello, I'm a member of the Ogre forum and am currently in the process of porting Ogre to android, the problem is that the samples provided with ogre use OIS for input, but OIS doesn't have input support.
What I'm proposing is these functions:
#include <jni.h>
void Java_com_OIS_InitOIS(JNIEnv* env);
void Java_com_OIS_HandleTouchEvent(JNIEnv* env, jint x, jint y);
void Java_com_OIS_HandleKeyEvent(JNIEnv* env, jint keycode);
So that the application can call these from java to handle any key input in OIS.
How Android handles input can be found here:
http://developer.android.com/reference/android/view/View.OnKeyListener.html#onKey(android.view.View, int, android.view.KeyEvent)And here:
http://developer.android.com/reference/android/view/View.OnTouchListener.htmlNote: Even though android supports native functions, its input system is java-only, thats why I'm proposing the OIS native functions to handle the java events.
Thanks in advance,
Calsmurf2904