1 // This file is part of the "Irrlicht Engine".
\r
2 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
4 #ifndef __C_IRR_KEY_EVENT_WRAPPER_H_INCLUDED__
\r
5 #define __C_IRR_KEY_EVENT_WRAPPER_H_INCLUDED__
\r
7 #include "IrrCompileConfig.h"
\r
9 #ifdef _IRR_COMPILE_WITH_ANDROID_DEVICE_
\r
20 //! Minimal JNI wrapper class around android.view.KeyEvent
\r
21 //! NOTE: Only functions we actually use in the engine are wrapped
\r
22 //! This is currently not written to support multithreading - meaning threads are not attached/detached to the Java VM (to be discussed)
\r
23 class CKeyEventWrapper
\r
26 CKeyEventWrapper(JNIEnv* jniEnv, int action, int code);
\r
27 ~CKeyEventWrapper();
\r
29 int getUnicodeChar(int metaState);
\r
32 static jclass Class_KeyEvent;
\r
33 static jmethodID Method_getUnicodeChar;
\r
34 static jmethodID Method_constructor;
\r
36 jobject JniKeyEvent; // this object in java
\r
42 #endif // _IRR_COMPILE_WITH_ANDROID_DEVICE_
\r
43 #endif // __C_IRR_KEY_EVENT_WRAPPER_H_INCLUDED__
\r