JoystickSymbols Class Reference

#include <JoystickSymbols.h>

Inheritance diagram for JoystickSymbols:

Xabsl2FunctionProvider BehaviorControlInterfaces List of all members.

Public Member Functions

 JoystickSymbols (const BehaviorControlInterfaces &interfaces)
void registerSymbols (Xabsl2Engine &engine)
void update ()
Input symbols
int getJoystickButton ()
double getJoystickTimeSinceLastMessage ()
double getSpecialActionId ()

Detailed Description

The Xabsl2 symbols that are defined in "joystick-symbols.xml"

Author:
Matthias Jüngel

Definition at line 20 of file JoystickSymbols.h.


Constructor & Destructor Documentation

JoystickSymbols::JoystickSymbols ( const BehaviorControlInterfaces interfaces  ) 

Definition at line 11 of file JoystickSymbols.cpp.


Member Function Documentation

int JoystickSymbols::getJoystickButton (  ) 

A function for the symbol "joystick-data.button"

Definition at line 75 of file JoystickSymbols.cpp.

References JoystickData::button, BehaviorControlInterfaces::joystickData, and numOfJoystickButtons.

Referenced by registerSymbols().

double JoystickSymbols::getJoystickTimeSinceLastMessage (  ) 

A function for the symbol "joystick-data.time-since-last-message"

Definition at line 70 of file JoystickSymbols.cpp.

References SystemCall::getTimeSince(), BehaviorControlInterfaces::joystickData, and JoystickData::timeStamp.

Referenced by registerSymbols().

double JoystickSymbols::getSpecialActionId (  ) 

A function for the symbol "joystick-data.special-action-id"

Definition at line 88 of file JoystickSymbols.cpp.

References BehaviorControlInterfaces::joystickData, and JoystickData::specialActionID.

Referenced by registerSymbols().

void JoystickSymbols::registerSymbols ( Xabsl2Engine engine  ) 

registers the symbols at an engine

Definition at line 17 of file JoystickSymbols.cpp.

References JoystickData::accel, JoystickData::coolie, JoystickData::directSpecialAction, getJoystickButton(), getJoystickTimeSinceLastMessage(), getSpecialActionId(), BehaviorControlInterfaces::joystickData, Xabsl2Symbols::registerBooleanInputSymbol(), Xabsl2Symbols::registerDecimalInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbolEnumElement(), JoystickData::x, JoystickData::y, and JoystickData::z.

Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors().

void JoystickSymbols::update (  ) 

updates the symbols

Definition at line 65 of file JoystickSymbols.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:39:42 2006 for DT2005.panorama by  doxygen 1.4.7