Can use input devices from x11 (serial input... unlikely to ever be used, but you...
[freeglut] / src / blackberry / fg_init_blackberry.c
index 4dee11d..40b1ed6 100644 (file)
 #include "fg_init.h"
 #include "egl/fg_init_egl.h"
 #include <bps/bps.h>
+#include <bps/navigator.h>
 
 void fgPlatformInitialize()
 {
   bps_initialize();
 
+  navigator_request_events(0);
+  //XXX rotation lock? navigator_rotation_lock(true);
+
   fghPlatformInitializeEGL();
 
   /* Get start time */
@@ -46,6 +50,8 @@ void fgPlatformCloseDisplay()
 {
   fghPlatformCloseDisplayEGL();
 
+  navigator_stop_events(0);
+
   bps_shutdown();
 }