control::Joystick::AxisMap Class Reference

Remaps joystick axises and indicates which axis had an event. Calling the If*() methods effectively remaps the axises (that is, remapping isn't done by changing the Event struct). More...

#include <_src_control_joystick.hh>

List of all members.

Public Types

enum  { ROLL, PITCH, YAW, THROTTLE }

Public Member Functions

 AxisMap (void)
bool IfRoll (const input::JoystickEvent &event)
bool IfPitch (const input::JoystickEvent &event)
bool IfYaw (const input::JoystickEvent &event)
bool IfThrottle (const input::JoystickEvent &event)

Private Attributes

vector< uintmAxises

Friends

class Joystick


Detailed Description

Remaps joystick axises and indicates which axis had an event. Calling the If*() methods effectively remaps the axises (that is, remapping isn't done by changing the Event struct).

Member Enumeration Documentation

anonymous enum

Enumerator:
ROLL 
PITCH 
YAW 
THROTTLE 


Constructor & Destructor Documentation

control::Joystick::AxisMap::AxisMap ( void   ) 

ctor.


Member Function Documentation

bool control::Joystick::AxisMap::IfRoll ( const input::JoystickEvent event  ) 

Returns:
True if joystick event struct matches the aircraft control.

bool control::Joystick::AxisMap::IfPitch ( const input::JoystickEvent event  ) 

bool control::Joystick::AxisMap::IfYaw ( const input::JoystickEvent event  ) 

bool control::Joystick::AxisMap::IfThrottle ( const input::JoystickEvent event  ) 


Friends And Related Function Documentation

friend class Joystick [friend]


Member Data Documentation


The documentation for this class was generated from the following files:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010