cmil::Axis Class Reference

Note that SDL provides a signed integer value for each axis (-32768 to 32768). More...

#include <InputData.h>

Inheritance diagram for cmil::Axis:

Inheritance graph
[legend]
Collaboration diagram for cmil::Axis:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Axis (const std::string &ident)
virtual InputDataclone ()
virtual void setAxis (signed int axis)
void do_run (AxisAction *action) const

Private Attributes

signed int m_axis

Detailed Description

Note that SDL provides a signed integer value for each axis (-32768 to 32768).

Definition at line 192 of file InputData.h.


Constructor & Destructor Documentation

cmil::Axis::Axis ( const std::string &  ident  )  [inline]

Definition at line 194 of file InputData.h.

Referenced by clone().

00194 : tInputData<AxisAction>(ident), m_axis(0) {}

Here is the caller graph for this function:


Member Function Documentation

virtual InputData* cmil::Axis::clone (  )  [inline, virtual]

Implements cmil::InputData.

Definition at line 196 of file InputData.h.

References Axis().

00196                                  {
00197         return new Axis(*this);
00198       };

Here is the call graph for this function:

void cmil::Axis::do_run ( AxisAction action  )  const [inline]

Definition at line 204 of file InputData.h.

References m_axis, and cmil::AxisAction::runAxis().

00204                                             {
00205         action->runAxis(m_axis);
00206       }

Here is the call graph for this function:

virtual void cmil::Axis::setAxis ( signed int  axis  )  [inline, virtual]

Definition at line 200 of file InputData.h.

References m_axis.

Referenced by cmil::SDL::SDLControllers::translate().

00200                                             {
00201         m_axis = axis;
00202       }

Here is the caller graph for this function:


Member Data Documentation

signed int cmil::Axis::m_axis [private]

Definition at line 209 of file InputData.h.

Referenced by do_run(), and setAxis().


The documentation for this class was generated from the following file:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:02 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo