Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MultiController Class Reference

#include <MultiController.h>

Inheritance diagram for MultiController:
MotionController

List of all members.

Public Member Functions

 MultiController ()
virtual ~MultiController ()
virtual void AddController (MotionController *c)
virtual void MapKeys (KeyMapEntry *mapping, int nkeys)
virtual void SwapYawRoll (int swap)
virtual int GetSwapYawRoll () const
virtual void Acquire ()
virtual double X ()
virtual double Y ()
virtual double Z ()
virtual double Pitch ()
virtual double Roll ()
virtual double Yaw ()
virtual int Center ()
virtual double Throttle ()
virtual void SetThrottle (double throttle)
virtual int Action (int n)
virtual int ActionMap (int n)
- Public Member Functions inherited from MotionController
 MotionController ()
virtual ~MotionController ()
StatusValue Status () const
int Sensitivity () const
int DeadZone () const
int Swapped () const
int Inverted () const
int RudderEnabled () const
int ThrottleEnabled () const
int Selector () const
virtual void SetSensitivity (int sense, int dead)
virtual void SetSelector (int sel)
virtual void SetRudderEnabled (int rud)
virtual void SetThrottleEnabled (int t)
virtual int GetSwapYawRoll ()
virtual void InvertPitch (int inv)
virtual int GetInverted ()

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

int nctrl
MotionControllerctrl [4]
double x
double y
double z
double p
double r
double w
double t
double p1
double r1
double w1
int c
int action [MotionController::MaxActions]
- Protected Attributes inherited from MotionController
StatusValue status
int sensitivity
int dead_zone
int swapped
int inverted
int rudder
int throttle
int select

Additional Inherited Members

- Public Types inherited from MotionController
enum  StatusValue { StatusOK, StatusErr, StatusBadParm }
enum  ActionValue { MaxActions = 32 }

Detailed Description

Definition at line 22 of file MultiController.h.


Constructor & Destructor Documentation

MultiController::MultiController ( )

Definition at line 20 of file MultiController.cpp.

MultiController::~MultiController ( )
virtual

Definition at line 31 of file MultiController.cpp.


Member Function Documentation

void MultiController::Acquire ( )
virtual

Reimplemented from MotionController.

Definition at line 74 of file MultiController.cpp.

virtual int MultiController::Action ( int  n)
inlinevirtual

Reimplemented from MotionController.

Definition at line 54 of file MultiController.h.

int MultiController::ActionMap ( int  n)
virtual

Reimplemented from MotionController.

Definition at line 119 of file MultiController.cpp.

void MultiController::AddController ( MotionController c)
virtual

Definition at line 40 of file MultiController.cpp.

virtual int MultiController::Center ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 47 of file MultiController.h.

int MultiController::GetSwapYawRoll ( ) const
virtual

Definition at line 54 of file MultiController.cpp.

void MultiController::MapKeys ( KeyMapEntry mapping,
int  nkeys 
)
virtual

Reimplemented from MotionController.

Definition at line 47 of file MultiController.cpp.

virtual double MultiController::Pitch ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 44 of file MultiController.h.

virtual double MultiController::Roll ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 45 of file MultiController.h.

void MultiController::SetThrottle ( double  throttle)
virtual

Reimplemented from MotionController.

Definition at line 110 of file MultiController.cpp.

void MultiController::SwapYawRoll ( int  swap)
virtual

Reimplemented from MotionController.

Definition at line 63 of file MultiController.cpp.

virtual double MultiController::Throttle ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 50 of file MultiController.h.

static const char* MultiController::TYPENAME ( )
inlinestatic

Reimplemented from MotionController.

Definition at line 25 of file MultiController.h.

virtual double MultiController::X ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 39 of file MultiController.h.

virtual double MultiController::Y ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 40 of file MultiController.h.

virtual double MultiController::Yaw ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 46 of file MultiController.h.

virtual double MultiController::Z ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 41 of file MultiController.h.


Member Data Documentation

int MultiController::action[MotionController::MaxActions]
protected

Definition at line 64 of file MultiController.h.

int MultiController::c
protected

Definition at line 63 of file MultiController.h.

MotionController* MultiController::ctrl[4]
protected

Definition at line 59 of file MultiController.h.

int MultiController::nctrl
protected

Definition at line 58 of file MultiController.h.

double MultiController::p
protected

Definition at line 61 of file MultiController.h.

double MultiController::p1
protected

Definition at line 62 of file MultiController.h.

double MultiController::r
protected

Definition at line 61 of file MultiController.h.

double MultiController::r1
protected

Definition at line 62 of file MultiController.h.

double MultiController::t
protected

Definition at line 61 of file MultiController.h.

double MultiController::w
protected

Definition at line 61 of file MultiController.h.

double MultiController::w1
protected

Definition at line 62 of file MultiController.h.

double MultiController::x
protected

Definition at line 61 of file MultiController.h.

double MultiController::y
protected

Definition at line 61 of file MultiController.h.

double MultiController::z
protected

Definition at line 61 of file MultiController.h.


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