Find this kind of bug is definitely out of my juridiction - please, PLEASE maintain...
[freeglut] / src / android / fg_init_android.c
index 70b276c..d19e91d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * freeglut_init_android.c
+ * fg_init_android.c
  *
  * Various freeglut initialization functions.
  *
 
 #include <GL/freeglut.h>
 #include "fg_internal.h"
+#include "fg_init.h"
+#include "egl/fg_init_egl.h"
 
 void fgPlatformInitialize()
 {
   fghPlatformInitializeEGL();
+
+  /* Get start time */
+  fgState.Time = fgSystemTime();
+
   fgState.Initialised = GL_TRUE;
 }
 
@@ -36,3 +42,13 @@ void fgPlatformCloseDisplay()
 {
   fghPlatformCloseDisplayEGL();
 }
+
+/**
+ * Close joystick and serial input devices
+ */
+void fgPlatformDeinitialiseInputDevices ( void )
+{
+    fghCloseInputDevices ();
+    fgState.JoysticksInitialised = GL_FALSE;
+    fgState.InputDevsInitialised = GL_FALSE;
+}