Namespaces | Defines | Functions

_src_control_joystick.cc File Reference

Higher-level Joystick class. More...

#include "base/module.hh"
#include "base/busy.hh"
#include "base/conf.hh"
#include "base/stream.hh"
#include "math/module.hh"
#include "math/funcs.hh"
#include "math/funcs_debug.hh"
#include "input/module.hh"
#include "input/device_joystick.hh"
#include "input/conf.hh"
#include "control/module.hh"
#include "control/joystick.hh"
#include "control/defs.hh"
#include "control/conf.hh"

Namespaces

namespace  control
 

control module (layer over lower-level input module, contains current Craft).


Defines

#define CONTROL_JOYSTICK_CC   1
#define IF_IN_AXIS_RANGE(AXIS_RANGE)

Functions

 control::DEFINE_SINGLETON_CLASS_VARS (Joystick) Joystick

Detailed Description

Higher-level Joystick class.

LastChangedDate:
2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
Author:
Jim E. Brooks http://www.palomino3d.org
 *
 * Overview:
 * ---------
 * Every tick, joystick events are dequeued from input::JoystickDevice's input queue.
 * control::Joystick handles axis movements by manipulating the current Craft (defined by Control).
 *
 * Continuing of axis events:
 * --------------------------
 * The handler will continue an axis event until another one supercedes it.
 * For example, holding the joystick all the way right for a while
 * is supposed to continually do a roll, yet one axis event will be enqueued
 * at the axis extreme then enqueuing will stop.
 *
 * 

Define Documentation

#define CONTROL_JOYSTICK_CC   1
#define IF_IN_AXIS_RANGE (   AXIS_RANGE  ) 
Value:
((event.mAxisVal < 0)                                                               \
         and (event.mAxisVal >= AXIS_RANGE.mMax) and (event.mAxisVal <= AXIS_RANGE.mMin))   \
     or ((event.mAxisVal >= 0)                                                              \
         and (event.mAxisVal >= AXIS_RANGE.mMin) and (event.mAxisVal <= AXIS_RANGE.mMax))
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10