FlightGear next
FGMouseInput Class Reference

#include <FGMouseInput.hxx>

Inherits SGSubsystem, and FGCommonInput.

Classes

class  FGMouseInputPrivate
 

Public Member Functions

 FGMouseInput ()
 
virtual ~FGMouseInput ()=default
 
void init () override
 
void reinit () override
 
void shutdown () override
 
void update (double dt) override
 
void doMouseClick (int b, int updown, int x, int y, bool mainWindow, const osgGA::GUIEventAdapter *ea)
 
void doMouseMotion (int x, int y, const osgGA::GUIEventAdapter *)
 
bool isRightDragToLookEnabled () const
 isRightDragToLookEnabled - test if we're in right-mouse-drag to adjust the view direction/position mode.
 
bool isActiveModePassThrough () const
 check if the active mode passes clicks through to the UI or not
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Detailed Description

Definition at line 41 of file FGMouseInput.hxx.

Constructor & Destructor Documentation

◆ FGMouseInput()

FGMouseInput::FGMouseInput ( )
default

◆ ~FGMouseInput()

virtual FGMouseInput::~FGMouseInput ( )
virtualdefault

Member Function Documentation

◆ doMouseClick()

void FGMouseInput::doMouseClick ( int b,
int updown,
int x,
int y,
bool mainWindow,
const osgGA::GUIEventAdapter * ea )

Definition at line 551 of file FGMouseInput.cxx.

◆ doMouseMotion()

void FGMouseInput::doMouseMotion ( int x,
int y,
const osgGA::GUIEventAdapter * ea )

Definition at line 710 of file FGMouseInput.cxx.

◆ init()

void FGMouseInput::init ( )
override

Definition at line 383 of file FGMouseInput.cxx.

◆ isActiveModePassThrough()

bool FGMouseInput::isActiveModePassThrough ( ) const

check if the active mode passes clicks through to the UI or not

Definition at line 749 of file FGMouseInput.cxx.

◆ isRightDragToLookEnabled()

bool FGMouseInput::isRightDragToLookEnabled ( ) const

isRightDragToLookEnabled - test if we're in right-mouse-drag to adjust the view direction/position mode.

Returns

Definition at line 740 of file FGMouseInput.cxx.

◆ reinit()

void FGMouseInput::reinit ( )
override

Definition at line 483 of file FGMouseInput.cxx.

◆ shutdown()

void FGMouseInput::shutdown ( )
override

Definition at line 473 of file FGMouseInput.cxx.

◆ staticSubsystemClassId()

static const char * FGMouseInput::staticSubsystemClassId ( )
inlinestatic

Definition at line 55 of file FGMouseInput.hxx.

◆ update()

void FGMouseInput::update ( double dt)
override

Definition at line 489 of file FGMouseInput.cxx.


The documentation for this class was generated from the following files: