#include <logicalinputdevice.h>

Public Member Functions | |
| AxesToAxis (Axis *firstSourceAxis=NULL, Axis *secondSourceAxis=NULL) | |
| Constructor. | |
| void | AddSourceAxis (Axis *sourceAxis) |
| Adds a source axis. | |
| void | RemoveSourceAxis (Axis *sourceAxis) |
| Removes a source axis. | |
| int | GetNumSourceAxes () |
| Returns the number of source axes. | |
| Axis * | GetSourceAxis (int index) |
| Returns the source axis at the specified index. | |
| virtual void | SetTargetAxis (LogicalAxis *targetAxis) |
| Sets the target axis. | |
| virtual LogicalAxis * | GetTargetAxis () |
| Gets the target axis. | |
| virtual bool | AxisStateChanged (const Axis *axis, double oldState, double newState, double delta) |
| Called when an axis' state has changed. | |
Protected Member Functions | |
| virtual | ~AxesToAxis () |
| Destructor. | |
The value of the target axis will correspond to the value of the last source axis updated.
Constructor.
| firstSourceAxis | the first source axis, or NULL for none | |
| secondSourceAxis | the second source axis, or NULL for none |
| dtCore::AxesToAxis::~AxesToAxis | ( | ) | [protected, virtual] |
Destructor.
| void dtCore::AxesToAxis::AddSourceAxis | ( | Axis * | sourceAxis | ) |
Adds a source axis.
| sourceAxis | the source axis to add |
| void dtCore::AxesToAxis::RemoveSourceAxis | ( | Axis * | sourceAxis | ) |
Removes a source axis.
| sourceAxis | the source axis to remove |
| int dtCore::AxesToAxis::GetNumSourceAxes | ( | ) |
Returns the number of source axes.
| Axis * dtCore::AxesToAxis::GetSourceAxis | ( | int | index | ) |
Returns the source axis at the specified index.
| index | the index of the axis to retrieve |
| void dtCore::AxesToAxis::SetTargetAxis | ( | LogicalAxis * | targetAxis | ) | [virtual] |
| LogicalAxis * dtCore::AxesToAxis::GetTargetAxis | ( | ) | [virtual] |
| bool dtCore::AxesToAxis::AxisStateChanged | ( | const Axis * | axis, | |
| double | oldState, | |||
| double | newState, | |||
| double | delta | |||
| ) | [virtual] |
Called when an axis' state has changed.
| axis | the changed axis | |
| oldState | the old state of the axis | |
| newState | the new state of the axis | |
| delta | a delta value indicating stateless motion |
Implements dtCore::AxisListener.