projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added two more navigator states (that might be implemented) for BlackBerry
[freeglut]
/
src
/
blackberry
/
fg_init_blackberry.c
diff --git
a/src/blackberry/fg_init_blackberry.c
b/src/blackberry/fg_init_blackberry.c
index
4dee11d
..
5a1a9d9
100644
(file)
--- a/
src/blackberry/fg_init_blackberry.c
+++ b/
src/blackberry/fg_init_blackberry.c
@@
-29,24
+29,30
@@
#include "fg_init.h"
#include "egl/fg_init_egl.h"
#include <bps/bps.h>
#include "fg_init.h"
#include "egl/fg_init_egl.h"
#include <bps/bps.h>
+#include <bps/navigator.h>
void fgPlatformInitialize()
{
void fgPlatformInitialize()
{
- bps_initialize();
+ bps_initialize();
- fghPlatformInitializeEGL();
+ navigator_request_events(0);
+ //XXX rotation lock? navigator_rotation_lock(true);
- /* Get start time */
- fgState.Time = fgSystemTime();
+ fghPlatformInitializeEGL();
- fgState.Initialised = GL_TRUE;
+ /* Get start time */
+ fgState.Time = fgSystemTime();
+
+ fgState.Initialised = GL_TRUE;
}
void fgPlatformCloseDisplay()
{
}
void fgPlatformCloseDisplay()
{
- fghPlatformCloseDisplayEGL();
+ fghPlatformCloseDisplayEGL();
+
+ navigator_stop_events(0);
- bps_shutdown();
+ bps_shutdown();
}
/**
}
/**