X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fblackberry%2Ffg_internal_blackberry.h;h=d06f9e12029fc0c9c55f7f7ddcbe2dca7f1301ee;hb=5ad986faebb7567081885408f90f6ced0554543c;hp=795ff5d99ea28aa8999d6bf080a4f72a3ed426c7;hpb=cc3d0ca4db0793c3c3760d7b34dded07c396edf0;p=freeglut diff --git a/src/blackberry/fg_internal_blackberry.h b/src/blackberry/fg_internal_blackberry.h index 795ff5d..d06f9e1 100644 --- a/src/blackberry/fg_internal_blackberry.h +++ b/src/blackberry/fg_internal_blackberry.h @@ -34,6 +34,7 @@ #include "egl/fg_internal_egl.h" #include #include +#include /* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */ /* The structure used by display initialization in freeglut_init.c */ @@ -42,7 +43,7 @@ struct tagSFG_PlatformDisplay { struct tagSFG_PlatformDisplayEGL egl; screen_context_t screenContext; - bps_event_t* event; + bps_event_t* event; EGLNativeWindowType single_native_window; }; @@ -69,6 +70,9 @@ struct touchscreen { bool in_mmotion; }; +/* -- INPUT DEFINITIONS ---------------------------------------------------- */ +#define WHEEL_DELTA 120 //This is taken from http://msdn.microsoft.com/en-us/library/windows/desktop/ms646254(v=vs.85).aspx + /* -- JOYSTICK-SPECIFIC STRUCTURES AND TYPES ------------------------------- */ /* @@ -110,7 +114,15 @@ struct tagSFG_PlatformJoystick typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState; struct tagSFG_PlatformWindowState { - char unused; + int newWidth; + int newHeight; + int originalRotation; + navigator_window_state_t windowState; + GLboolean windowCovered; +#ifdef __PLAYBOOK__ + int keyboardHeight; + GLboolean keyboardOpen; +#endif }; /* Menu font and color definitions */