diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 17:12:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 17:12:21 +0000 |
| commit | bd844a2abc62272f277520dae27dbadc637b3235 (patch) | |
| tree | 18411896fd6a17f59adb695280db0df834ab4a61 /src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H | |
| parent | 75d66680cbfe95bed1c158dcb32adaf7b24576a8 (diff) | |
Android version compiles, links, launches, and receives commands.
Still need to implement window creation and drawing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H')
| -rw-r--r-- | src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H b/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H index f0e0efdd0..e9b10fb5a 100644 --- a/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H +++ b/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H @@ -27,13 +27,31 @@ #include "../Pico/Fl_Pico_Screen_Driver.H" +#include <jni.h> +#include <errno.h> + +#include <android/sensor.h> +#include <android/log.h> +#include <android_native_app_glue.h> + + class FL_EXPORT Fl_PicoAndroid_Screen_Driver : public Fl_Pico_Screen_Driver { + struct android_app* pApp; + + static void handleAppCmdCB(struct android_app* app, int32_t cmd); + void handleAppCmd(struct android_app* app, int32_t cmd); + static int32_t handleInputEventCB(struct android_app* app, AInputEvent* event); + int32_t handleInputEvent(struct android_app* app, AInputEvent* event); + public: Fl_PicoAndroid_Screen_Driver(); virtual ~Fl_PicoAndroid_Screen_Driver(); virtual double wait(double time_to_wait); + +public: + void android_main(struct android_app* state); }; |
