FlightGear next
FGButton Class Reference

#include <FGButton.hxx>

Inherits FGCommonInput.

Public Member Functions

 FGButton ()
 
virtual ~FGButton ()
 
void init (const SGPropertyNode *node, const std::string &name, const std::string &module)
 
void update (int modifiers, bool pressed, int x=-1, int y=-1)
 

Public Attributes

bool is_repeatable
 
float interval_sec
 
float delay_sec
 
float release_delay_sec
 
float last_dt
 
int last_state
 
binding_list_t bindings [KEYMOD_MAX]
 

Additional Inherited Members

- Public Types inherited from FGCommonInput
using binding_list_t = SGBindingList
 
- Static Public Member Functions inherited from FGCommonInput
static void read_bindings (const SGPropertyNode *base, binding_list_t *binding_list, int modifiers, const std::string &module)
 

Detailed Description

Definition at line 31 of file FGButton.hxx.

Constructor & Destructor Documentation

◆ FGButton()

FGButton::FGButton ( )

Definition at line 32 of file FGButton.cxx.

◆ ~FGButton()

FGButton::~FGButton ( )
virtual

Definition at line 42 of file FGButton.cxx.

Member Function Documentation

◆ init()

void FGButton::init ( const SGPropertyNode * node,
const std::string & name,
const std::string & module )

Definition at line 49 of file FGButton.cxx.

◆ update()

void FGButton::update ( int modifiers,
bool pressed,
int x = -1,
int y = -1 )

Definition at line 61 of file FGButton.cxx.

Member Data Documentation

◆ bindings

binding_list_t FGButton::bindings[KEYMOD_MAX]

Definition at line 42 of file FGButton.hxx.

◆ delay_sec

float FGButton::delay_sec

Definition at line 39 of file FGButton.hxx.

◆ interval_sec

float FGButton::interval_sec

Definition at line 39 of file FGButton.hxx.

◆ is_repeatable

bool FGButton::is_repeatable

Definition at line 38 of file FGButton.hxx.

◆ last_dt

float FGButton::last_dt

Definition at line 40 of file FGButton.hxx.

◆ last_state

int FGButton::last_state

Definition at line 41 of file FGButton.hxx.

◆ release_delay_sec

float FGButton::release_delay_sec

Definition at line 39 of file FGButton.hxx.


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