Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Member Functions | Protected Attributes
input::Joystick Class Reference

A common base class for joystick device. More...

#include <Joystick.h>

Inheritance diagram for input::Joystick:
input::InputDevice engine::Object

List of all members.

Public Member Functions

void addJoystickEventReceiver (input::JoystickEventReceiver *newEventReceiver)
s16 getNumAxes ()
 Returns the number of axes.
s16 getNumButtons ()
 Returns the number of buttons.
s16 getNumPOVs ()
 Returns the number of povs.
 Joystick ()
 Constructor.
void removeJoystickEventReceiver (input::JoystickEventReceiver *oldEventReceiver)
virtual ~Joystick ()
 Destructor.

Protected Member Functions

void initProperties ()

Protected Attributes

JoystickEventmEvent
std::list
< input::JoystickEventReceiver * > 
mJoystickEventReceivers
s16 mNumAxes
s16 mNumButtons
s16 mNumPOVs

Detailed Description

A common base class for joystick device.


Constructor & Destructor Documentation

input::Joystick::Joystick ( )
input::Joystick::~Joystick ( ) [virtual]

Destructor.

References mEvent.


Member Function Documentation

void input::Joystick::addJoystickEventReceiver ( input::JoystickEventReceiver newEventReceiver)
s16 input::Joystick::getNumAxes ( )

Returns the number of axes.

References mNumAxes.

s16 input::Joystick::getNumButtons ( )

Returns the number of buttons.

References mNumButtons.

s16 input::Joystick::getNumPOVs ( )

Returns the number of povs.

References mNumPOVs.

void input::Joystick::initProperties ( ) [protected]

Reimplemented from input::InputDevice.

References mEvent, mNumAxes, mNumButtons, and mNumPOVs.

Referenced by Joystick().

void input::Joystick::removeJoystickEventReceiver ( input::JoystickEventReceiver oldEventReceiver)

Member Data Documentation

Referenced by initProperties(), and ~Joystick().

Referenced by getNumAxes(), and initProperties().

Referenced by getNumButtons(), and initProperties().

Referenced by getNumPOVs(), and initProperties().


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

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by Doxygen (1.7.4)