FlightGear next
FGEventInput Class Reference

#include <FGEventInput.hxx>

Inherits SGSubsystem, and FGCommonInput.

Inherited by FGHIDEventInput, and FGLinuxEventInput.

Public Member Functions

 FGEventInput ()
 
 FGEventInput (const char *filePath, const char *propertyRoot)
 
virtual ~FGEventInput ()
 
void init () override
 
void postinit () override
 
void shutdown () override
 
void update (double dt) override
 

Static Public Attributes

static const unsigned MAX_DEVICES = 1000
 
static const unsigned INVALID_DEVICE_INDEX = MAX_DEVICES + 1
 

Protected Member Functions

unsigned AddDevice (FGInputDevice *inputDevice)
 
void RemoveDevice (unsigned index)
 

Protected Attributes

const char * filePath
 
const char * propertyRoot
 
std::map< int, FGInputDevice * > inputDevices
 
FGDeviceConfigurationMap configMap
 
SGPropertyNode_ptr nasalClose
 

Detailed Description

Definition at line 299 of file FGEventInput.hxx.

Constructor & Destructor Documentation

◆ FGEventInput() [1/2]

FGEventInput::FGEventInput ( )

Definition at line 370 of file FGEventInput.cxx.

◆ FGEventInput() [2/2]

FGEventInput::FGEventInput ( const char * filePath,
const char * propertyRoot )

Definition at line 374 of file FGEventInput.cxx.

◆ ~FGEventInput()

FGEventInput::~FGEventInput ( )
virtual

Definition at line 380 of file FGEventInput.cxx.

Member Function Documentation

◆ AddDevice()

unsigned FGEventInput::AddDevice ( FGInputDevice * inputDevice)
protected

Definition at line 426 of file FGEventInput.cxx.

◆ init()

void FGEventInput::init ( )
override

Definition at line 395 of file FGEventInput.cxx.

◆ postinit()

void FGEventInput::postinit ( )
override

Definition at line 400 of file FGEventInput.cxx.

◆ RemoveDevice()

void FGEventInput::RemoveDevice ( unsigned index)
protected

Definition at line 500 of file FGEventInput.cxx.

◆ shutdown()

void FGEventInput::shutdown ( )
override

Definition at line 385 of file FGEventInput.cxx.

◆ update()

void FGEventInput::update ( double dt)
override

Definition at line 404 of file FGEventInput.cxx.

Member Data Documentation

◆ configMap

FGDeviceConfigurationMap FGEventInput::configMap
protected

Definition at line 325 of file FGEventInput.hxx.

◆ filePath

const char* FGEventInput::filePath
protected

Definition at line 318 of file FGEventInput.hxx.

◆ inputDevices

std::map<int,FGInputDevice*> FGEventInput::inputDevices
protected

Definition at line 324 of file FGEventInput.hxx.

◆ INVALID_DEVICE_INDEX

const unsigned FGEventInput::INVALID_DEVICE_INDEX = MAX_DEVICES + 1
static

Definition at line 314 of file FGEventInput.hxx.

◆ MAX_DEVICES

const unsigned FGEventInput::MAX_DEVICES = 1000
static

Definition at line 313 of file FGEventInput.hxx.

◆ nasalClose

SGPropertyNode_ptr FGEventInput::nasalClose
protected

Definition at line 327 of file FGEventInput.hxx.

◆ propertyRoot

const char* FGEventInput::propertyRoot
protected

Definition at line 319 of file FGEventInput.hxx.


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