Find this kind of bug is definitely out of my juridiction - please, PLEASE maintain...
[freeglut] / src / android / fg_init_android.c
index a07cedd..d19e91d 100644 (file)
 
 #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;
 }
 
@@ -37,3 +42,13 @@ void fgPlatformCloseDisplay()
 {
   fghPlatformCloseDisplayEGL();
 }
+
+/**
+ * Close joystick and serial input devices
+ */
+void fgPlatformDeinitialiseInputDevices ( void )
+{
+    fghCloseInputDevices ();
+    fgState.JoysticksInitialised = GL_FALSE;
+    fgState.InputDevsInitialised = GL_FALSE;
+}