- void doMouseClick (int b, int updown, int x, int y, bool mainWindow, const osgGA::GUIEventAdapter* ea);
- void doMouseMotion (int x, int y);
- static FGMouseInput * mouseInput;
- static void mouseClickHandler(int button, int updown, int x, int y, bool mainWindow, const osgGA::GUIEventAdapter*);
- static void mouseMotionHandler(int x, int y);
-
- ActivePickCallbacks activePickCallbacks;
- /**
- * Settings for a mouse mode.
- */
- struct mouse_mode {
- mouse_mode ();
- virtual ~mouse_mode ();
- int cursor;
- bool constrained;
- bool pass_through;
- FGButton * buttons;
- binding_list_t x_bindings[KEYMOD_MAX];
- binding_list_t y_bindings[KEYMOD_MAX];
- };
-
-
- /**
- * Settings for a mouse.
- */
- struct mouse {
- mouse ();
- virtual ~mouse ();
- int x;
- int y;
- int save_x;
- int save_y;
- SGPropertyNode_ptr mode_node;
- SGPropertyNode_ptr mouse_button_nodes[MAX_MOUSE_BUTTONS];
- int nModes;
- int current_mode;
- double timeout;
- mouse_mode * modes;
- };
-
- //
- // Map of all known cursor names
- // This used to contain all the Glut cursors, but those are
- // not defined by other toolkits. It now supports only the cursor
- // images we actually use, in the interest of portability. Someday,
- // it would be cool to write an OpenGL cursor renderer, with the
- // cursors defined as textures referenced in the property tree. This
- // list could then be eliminated. -Andy
- //
- const static struct MouseCursorMap {
- const char * name;
- int cursor;
- } mouse_cursor_map[];
-
- mouse bindings[MAX_MICE];