#include <PhxLogicalInputEngine.h>
Inheritance diagram for Phx::LogicalInputEngine::AnalogButtonDriver:

Public Member Functions | |
| virtual void | axis (const AxisSpec &axis)=0 |
| Specifies which RawInputEngine axis this driver is bound to. | |
| virtual AxisSpec | axis (void) const =0 |
| Gets the current AxisSpec to which this driver is bound. | |
| virtual void | threshold (RawInputEngine::AxisState threshold)=0 |
| Sets the threshold at which the logical button will be triggered by the raw axis. | |
| virtual RawInputEngine::AxisState | threshold (void) const =0 |
| Gets the threshold at which the logical button will be triggered by the raw axis. | |
| virtual void | inverted (bool invert)=0 |
| Sets whether the logical button is pressed when the raw axis is greather or less than threshold(). | |
| virtual bool | inverted (void) const =0 |
| Returns whether the logical button is pressed when the raw axis greather or less than threshold(). | |
Whenever the raw axis (specified in the axis() attribute) is strictly greater than the value of the threshold() attribute (or less, if inverted() is true), the logical button is in the PRESSED state. It is in the RELEASED otherwise.
|
|
Gets the current AxisSpec to which this driver is bound.
|
|
|
Specifies which RawInputEngine axis this driver is bound to.
|
|
|
Returns whether the logical button is pressed when the raw axis greather or less than threshold(). inverted() is initially false by default.
|
|
|
Sets whether the logical button is pressed when the raw axis is greather or less than threshold().
|
|
|
Gets the threshold at which the logical button will be triggered by the raw axis. threshold() is initially 0 by default.
|
|
|
Sets the threshold at which the logical button will be triggered by the raw axis.
If inverted() is false, the button will be PRESSED when the raw axis value is greater than
|
1.4.2