FlightGear next
FGButtonEvent Class Reference

#include <FGEventInput.hxx>

Inherits FGInputEvent.

Public Member Functions

 FGButtonEvent (FGInputDevice *device, SGPropertyNode_ptr node)
 
virtual void fire (FGEventData &eventData)
 
void update (double dt) override
 
- Public Member Functions inherited from FGInputEvent
 FGInputEvent (FGInputDevice *device, SGPropertyNode_ptr eventNode)
 
virtual ~FGInputEvent ()
 
std::string GetName () const
 
std::string GetDescription () const
 

Protected Attributes

bool repeatable
 
bool lastState
 
- 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)
 
- Protected Member Functions inherited from FGInputEvent
virtual void fire (SGAbstractBinding *binding, FGEventData &eventData)
 

Detailed Description

Definition at line 152 of file FGEventInput.hxx.

Constructor & Destructor Documentation

◆ FGButtonEvent()

FGButtonEvent::FGButtonEvent ( FGInputDevice * device,
SGPropertyNode_ptr node )

Definition at line 216 of file FGEventInput.cxx.

Member Function Documentation

◆ fire()

void FGButtonEvent::fire ( FGEventData & eventData)
virtual

Reimplemented from FGInputEvent.

Definition at line 224 of file FGEventInput.cxx.

◆ update()

void FGButtonEvent::update ( double dt)
overridevirtual

Reimplemented from FGInputEvent.

Definition at line 245 of file FGEventInput.cxx.

Member Data Documentation

◆ lastState

bool FGButtonEvent::lastState
protected

Definition at line 161 of file FGEventInput.hxx.

◆ repeatable

bool FGButtonEvent::repeatable
protected

Definition at line 160 of file FGEventInput.hxx.


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