FlightGear next
FGMouseInput.cxx File Reference
#include <memory>
#include "FGMouseInput.hxx"
#include <osgGA/GUIEventAdapter>
#include <simgear/scene/util/SGPickCallback.hxx>
#include <simgear/timing/timestamp.hxx>
#include <simgear/scene/model/SGPickAnimation.hxx>
#include "FGButton.hxx"
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
#include <Viewer/renderer.hxx>
#include <Viewer/sview.hxx>
#include <Viewer/FGEventHandler.hxx>
#include <GUI/MouseCursor.hxx>

Go to the source code of this file.

Classes

class  ActivePickCallbacks
 List of currently pressed mouse button events. More...
 
struct  mouse_mode
 Settings for a mouse mode. More...
 
struct  mouse
 Settings for a mouse. More...
 
class  FGMouseInput::FGMouseInputPrivate
 

Typedefs

typedef std::vector< SGSceneryPick > SGSceneryPicks
 
typedef SGSharedPtr< SGPickCallback > SGPickCallbackPtr
 
typedef std::list< SGPickCallbackPtrSGPickCallbackList
 

Functions

static const SGSceneryPick * getPick (const SGSceneryPicks &pick_list, const SGPickCallback *cb)
 
static void mouseClickHandler (int button, int updown, int x, int y, bool mainWindow, const osgGA::GUIEventAdapter *ea)
 
static void mouseMotionHandler (int x, int y, const osgGA::GUIEventAdapter *ea)
 

Variables

const int MAX_MICE = 1
 
const int MAX_MOUSE_BUTTONS = 8
 
static FGMouseInputglobal_mouseInput = nullptr
 
SGSubsystemMgr::Registrant< FGMouseInputregistrantFGMouseInput
 

Typedef Documentation

◆ SGPickCallbackList

Definition at line 54 of file FGMouseInput.cxx.

◆ SGPickCallbackPtr

typedef SGSharedPtr<SGPickCallback> SGPickCallbackPtr

Definition at line 53 of file FGMouseInput.cxx.

◆ SGSceneryPicks

typedef std::vector<SGSceneryPick> SGSceneryPicks

Definition at line 52 of file FGMouseInput.cxx.

Function Documentation

◆ getPick()

static const SGSceneryPick * getPick ( const SGSceneryPicks & pick_list,
const SGPickCallback * cb )
static

Definition at line 141 of file FGMouseInput.cxx.

◆ mouseClickHandler()

static void mouseClickHandler ( int button,
int updown,
int x,
int y,
bool mainWindow,
const osgGA::GUIEventAdapter * ea )
static

Definition at line 369 of file FGMouseInput.cxx.

◆ mouseMotionHandler()

static void mouseMotionHandler ( int x,
int y,
const osgGA::GUIEventAdapter * ea )
static

Definition at line 375 of file FGMouseInput.cxx.

Variable Documentation

◆ global_mouseInput

FGMouseInput* global_mouseInput = nullptr
static

Definition at line 367 of file FGMouseInput.cxx.

◆ MAX_MICE

const int MAX_MICE = 1

Definition at line 49 of file FGMouseInput.cxx.

◆ MAX_MOUSE_BUTTONS

const int MAX_MOUSE_BUTTONS = 8

Definition at line 50 of file FGMouseInput.cxx.

◆ registrantFGMouseInput

SGSubsystemMgr::Registrant<FGMouseInput> registrantFGMouseInput

Definition at line 780 of file FGMouseInput.cxx.