2001-03-19 13:56:19 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <simgear/compiler.h>
|
|
|
|
|
2001-01-08 20:55:16 +00:00
|
|
|
#include "trackball.h"
|
|
|
|
|
2001-03-16 23:58:31 +00:00
|
|
|
#if defined(WIN32) || defined(__CYGWIN32__)
|
|
|
|
#define WIN32_CURSOR_TWEAKS
|
2001-11-12 19:37:23 +00:00
|
|
|
// uncomment this for cursor to turn off when menu is disabled
|
|
|
|
// #define WIN32_CURSOR_TWEAKS_OFF
|
2001-03-16 23:58:31 +00:00
|
|
|
#elif (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
|
|
|
|
#define X_CURSOR_TWEAKS
|
|
|
|
#endif
|
|
|
|
|
2001-01-08 20:55:16 +00:00
|
|
|
typedef enum {
|
|
|
|
MOUSE_POINTER,
|
|
|
|
MOUSE_YOKE,
|
|
|
|
MOUSE_VIEW
|
|
|
|
} MouseMode;
|
|
|
|
|
|
|
|
extern MouseMode mouse_mode;
|
|
|
|
|
|
|
|
extern float lastGuiQuat[4];
|
|
|
|
extern float curGuiQuat[4];
|
|
|
|
extern float GuiQuat_mat[4][4];
|
|
|
|
|
|
|
|
extern void initMouseQuat( void );
|
|
|
|
extern void Quat0( void );
|
|
|
|
|
|
|
|
class puObject;
|
|
|
|
extern void reInit(puObject *cb);
|