]> git.mxchange.org Git - flightgear.git/blob - src/GUI/gui_local.hxx
Updated mouse gui tweaks and Jim's nifty new external view controls.
[flightgear.git] / src / GUI / gui_local.hxx
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #include <simgear/compiler.h>
6
7 #include "trackball.h"
8
9 #if defined(WIN32) || defined(__CYGWIN32__)
10 #define WIN32_CURSOR_TWEAKS
11 // uncomment this for cursor to turn off when menu is disabled
12 // #define WIN32_CURSOR_TWEAKS_OFF
13 #elif (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
14 #define X_CURSOR_TWEAKS
15 #endif
16
17 typedef enum {
18         MOUSE_POINTER,
19         MOUSE_YOKE,
20         MOUSE_VIEW
21 } MouseMode;
22
23 extern MouseMode mouse_mode;
24 extern int gui_menu_on;
25
26 extern float lastGuiQuat[4];
27 extern float curGuiQuat[4];
28 extern float GuiQuat_mat[4][4];
29
30 extern void initMouseQuat( void );
31 extern void Quat0( void );
32
33 class puObject;
34 extern void reInit(puObject *cb);