Sirikata
|
#include <InputDevice.hpp>
Public Member Functions | |
float | get01 () const |
float | getCentered () const |
bool | isNegative () const |
bool | isPositive () const |
void | clip () |
bool | operator== (const AxisValue &other) const |
AxisValue | operator- () const |
bool | operator!= (const AxisValue &other) const |
Static Public Member Functions | |
static AxisValue | fromCentered (float val) |
static AxisValue | from01 (float val) |
static AxisValue | null () |
Public Attributes | |
float | value |
Friends | |
std::ostream & | operator<< (std::ostream &os, const AxisValue &val) |
void Sirikata::Input::AxisValue::clip | ( | ) | [inline] |
References value.
Referenced by Sirikata::Input::InputDevice::changeAxis(), and Sirikata::Input::InputDevice::fireAxis().
Referenced by Sirikata::Input::SDLMouse::fireMotion().
float Sirikata::Input::AxisValue::getCentered | ( | ) | const [inline] |
References value.
Referenced by Sirikata::Input::SDLMouse::fireMotion(), and operator-().
bool Sirikata::Input::AxisValue::isNegative | ( | ) | const [inline] |
References value.
bool Sirikata::Input::AxisValue::isPositive | ( | ) | const [inline] |
References value.
static AxisValue Sirikata::Input::AxisValue::null | ( | ) | [inline, static] |
References fromCentered().
Referenced by Sirikata::Input::InputDevice::changeAxis(), Sirikata::Input::InputDevice::fireAxis(), and Sirikata::Input::InputDevice::getAxis().
bool Sirikata::Input::AxisValue::operator!= | ( | const AxisValue & | other | ) | const [inline] |
References value.
AxisValue Sirikata::Input::AxisValue::operator- | ( | ) | const [inline] |
References fromCentered(), and getCentered().
bool Sirikata::Input::AxisValue::operator== | ( | const AxisValue & | other | ) | const [inline] |
References value.
std::ostream& operator<< | ( | std::ostream & | os, |
const AxisValue & | val | ||
) | [friend] |
Referenced by clip(), get01(), getCentered(), isNegative(), isPositive(), operator!=(), and operator==().