FlightGear next
FGAxisEvent Class Reference

#include <FGEventInput.hxx>

Inherits FGInputEvent.

Inherited by FGAbsAxisEvent, and FGRelAxisEvent.

Public Member Functions

 FGAxisEvent (FGInputDevice *device, SGPropertyNode_ptr eventNode)
 
 ~FGAxisEvent ()
 
void SetMaxRange (double value)
 
void SetMinRange (double value)
 
void SetRange (double min, double max)
 
- Public Member Functions inherited from FGInputEvent
 FGInputEvent (FGInputDevice *device, SGPropertyNode_ptr eventNode)
 
virtual ~FGInputEvent ()
 
std::string GetName () const
 
std::string GetDescription () const
 
virtual void update (double dt)
 

Protected Member Functions

virtual void fire (FGEventData &eventData)
 
- Protected Member Functions inherited from FGInputEvent
virtual void fire (SGAbstractBinding *binding, FGEventData &eventData)
 

Protected Attributes

double tolerance
 
double minRange
 
double maxRange
 
double center
 
double deadband
 
double lowThreshold
 
double highThreshold
 
double lastValue
 
std::unique_ptr< SGInterpTable > interpolater
 
bool mirrorInterpolater = false
 
- Protected Attributes inherited from FGInputEvent
std::string desc
 
std::string name
 
binding_list_t bindings [KEYMOD_MAX]
 
setting_list_t settings
 
FGInputDevicedevice
 
double lastDt
 
double intervalSec
 
double lastSettingValue
 

Additional Inherited Members

- Static Public Member Functions inherited from FGInputEvent
static FGInputEventNewObject (FGInputDevice *device, SGPropertyNode_ptr node)
 

Detailed Description

Definition at line 164 of file FGEventInput.hxx.

Constructor & Destructor Documentation

◆ FGAxisEvent()

FGAxisEvent::FGAxisEvent ( FGInputDevice * device,
SGPropertyNode_ptr eventNode )

Definition at line 147 of file FGEventInput.cxx.

◆ ~FGAxisEvent()

FGAxisEvent::~FGAxisEvent ( )

Definition at line 166 of file FGEventInput.cxx.

Member Function Documentation

◆ fire()

void FGAxisEvent::fire ( FGEventData & eventData)
protectedvirtual

Reimplemented from FGInputEvent.

Definition at line 170 of file FGEventInput.cxx.

◆ SetMaxRange()

void FGAxisEvent::SetMaxRange ( double value)
inline

Definition at line 170 of file FGEventInput.hxx.

◆ SetMinRange()

void FGAxisEvent::SetMinRange ( double value)
inline

Definition at line 171 of file FGEventInput.hxx.

◆ SetRange()

void FGAxisEvent::SetRange ( double min,
double max )
inline

Definition at line 172 of file FGEventInput.hxx.

Member Data Documentation

◆ center

double FGAxisEvent::center
protected

Definition at line 179 of file FGEventInput.hxx.

◆ deadband

double FGAxisEvent::deadband
protected

Definition at line 180 of file FGEventInput.hxx.

◆ highThreshold

double FGAxisEvent::highThreshold
protected

Definition at line 182 of file FGEventInput.hxx.

◆ interpolater

std::unique_ptr<SGInterpTable> FGAxisEvent::interpolater
protected

Definition at line 184 of file FGEventInput.hxx.

◆ lastValue

double FGAxisEvent::lastValue
protected

Definition at line 183 of file FGEventInput.hxx.

◆ lowThreshold

double FGAxisEvent::lowThreshold
protected

Definition at line 181 of file FGEventInput.hxx.

◆ maxRange

double FGAxisEvent::maxRange
protected

Definition at line 178 of file FGEventInput.hxx.

◆ minRange

double FGAxisEvent::minRange
protected

Definition at line 177 of file FGEventInput.hxx.

◆ mirrorInterpolater

bool FGAxisEvent::mirrorInterpolater = false
protected

Definition at line 185 of file FGEventInput.hxx.

◆ tolerance

double FGAxisEvent::tolerance
protected

Definition at line 176 of file FGEventInput.hxx.


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