Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

JoystickInputDevice Class Reference

Input device which gets the reactions from the joystick. More...

#include <joystickinputdevice.hpp>

Inheritance diagram for JoystickInputDevice:

Inheritance graph
[legend]
Collaboration diagram for JoystickInputDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JoystickInputDevice ()
 Default Constructor.
 ~JoystickInputDevice ()
 Destructor.
int getLastButton () const
 Gets the last joystick button which was pressed.

Protected Member Functions

bool poll ()
bool handle (vector< bool > &states)
 InputDevice::handle().

Protected Attributes

int lastButton
 last pressed joysrick button

Detailed Description

Input device which gets the reactions from the joystick.

Definition at line 26 of file joystickinputdevice.hpp.


Constructor & Destructor Documentation

JoystickInputDevice::JoystickInputDevice  ) 
 

Default Constructor.

Definition at line 26 of file joystickinputdevice.cpp.

References PtfCore::getMessageLog(), and Singleton< PtfCore >::getSingleton().

Here is the call graph for this function:

JoystickInputDevice::~JoystickInputDevice  ) 
 

Destructor.

Definition at line 44 of file joystickinputdevice.cpp.


Member Function Documentation

int JoystickInputDevice::getLastButton  )  const
 

Gets the last joystick button which was pressed.

Returns:
last button which was pressed
Definition at line 69 of file joystickinputdevice.cpp.

References lastButton.

bool JoystickInputDevice::handle vector< bool > &  states  )  [protected, virtual]
 

InputDevice::handle().

Reimplemented from InputDevice.

Definition at line 76 of file joystickinputdevice.cpp.

bool JoystickInputDevice::poll  )  [protected, virtual]
 

Returns:
true if a button on the joystick is pressed

Reimplemented from InputDevice.

Definition at line 51 of file joystickinputdevice.cpp.

References PtfCore::getScheduler(), Singleton< PtfCore >::getSingleton(), lastButton, and Scheduler::quit().

Here is the call graph for this function:


Member Data Documentation

int JoystickInputDevice::lastButton [protected]
 

last pressed joysrick button

Definition at line 28 of file joystickinputdevice.hpp.

Referenced by getLastButton(), and poll().


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 14:54:29 2004 for Psychological Test Framework by doxygen 1.3.8