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

#include <MouseController.h>

Inheritance diagram for MouseController:
MotionController

List of all members.

Public Member Functions

 MouseController ()
virtual ~MouseController ()
virtual void MapKeys (KeyMapEntry *mapping, int nkeys)
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)
virtual bool Active ()
virtual void SetActive (bool a)
- 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 void SwapYawRoll (int swap)
virtual int GetSwapYawRoll ()
virtual void InvertPitch (int inv)
virtual int GetInverted ()

Static Public Member Functions

static const char * TYPENAME ()
static MouseControllerGetInstance ()

Protected Attributes

double p
double r
double w
double dx
double dy
double t
int action [MotionController::MaxActions]
int map [32]
bool active
int active_key
- 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 MouseController.h.


Constructor & Destructor Documentation

MouseController::MouseController ( )

Definition at line 31 of file MouseController.cpp.

MouseController::~MouseController ( )
virtual

Definition at line 48 of file MouseController.cpp.


Member Function Documentation

void MouseController::Acquire ( )
virtual

Reimplemented from MotionController.

Definition at line 92 of file MouseController.cpp.

virtual int MouseController::Action ( int  n)
inlinevirtual

Reimplemented from MotionController.

Definition at line 52 of file MouseController.h.

int MouseController::ActionMap ( int  n)
virtual

Reimplemented from MotionController.

Definition at line 240 of file MouseController.cpp.

virtual bool MouseController::Active ( )
inlinevirtual

Definition at line 56 of file MouseController.h.

virtual int MouseController::Center ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 45 of file MouseController.h.

MouseController * MouseController::GetInstance ( )
static

Definition at line 54 of file MouseController.cpp.

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

Reimplemented from MotionController.

Definition at line 62 of file MouseController.cpp.

virtual double MouseController::Pitch ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 42 of file MouseController.h.

virtual double MouseController::Roll ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 43 of file MouseController.h.

virtual void MouseController::SetActive ( bool  a)
inlinevirtual

Definition at line 57 of file MouseController.h.

virtual void MouseController::SetThrottle ( double  throttle)
inlinevirtual

Reimplemented from MotionController.

Definition at line 49 of file MouseController.h.

virtual double MouseController::Throttle ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 48 of file MouseController.h.

static const char* MouseController::TYPENAME ( )
inlinestatic

Reimplemented from MotionController.

Definition at line 25 of file MouseController.h.

virtual double MouseController::X ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 37 of file MouseController.h.

virtual double MouseController::Y ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 38 of file MouseController.h.

virtual double MouseController::Yaw ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 44 of file MouseController.h.

virtual double MouseController::Z ( )
inlinevirtual

Reimplemented from MotionController.

Definition at line 39 of file MouseController.h.


Member Data Documentation

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

Definition at line 63 of file MouseController.h.

bool MouseController::active
protected

Definition at line 65 of file MouseController.h.

int MouseController::active_key
protected

Definition at line 66 of file MouseController.h.

double MouseController::dx
protected

Definition at line 62 of file MouseController.h.

double MouseController::dy
protected

Definition at line 62 of file MouseController.h.

int MouseController::map[32]
protected

Definition at line 64 of file MouseController.h.

double MouseController::p
protected

Definition at line 62 of file MouseController.h.

double MouseController::r
protected

Definition at line 62 of file MouseController.h.

double MouseController::t
protected

Definition at line 62 of file MouseController.h.

double MouseController::w
protected

Definition at line 62 of file MouseController.h.


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