|
kodi
|
Class to hold state about the current activity of a controller. More...
#include <ControllerActivity.h>
Public Member Functions | |
| float | GetActivation () const |
| void | ClearButtonState () |
| void | OnButtonPress (bool pressed) |
| void | OnButtonMotion (float magnitude) |
| void | OnAnalogStickMotion (float x, float y) |
| void | OnWheelMotion (float position) |
| void | OnThrottleMotion (float position) |
| void | OnKeyPress (const KEYBOARD::KeyName &key) |
| void | OnKeyRelease (const KEYBOARD::KeyName &key) |
| void | OnMouseMotion (const MOUSE::PointerName &relpointer, int differenceX, int differenceY) |
| void | OnMouseButtonPress (const MOUSE::ButtonName &button) |
| void | OnMouseButtonRelease (const MOUSE::ButtonName &button) |
| void | OnInputFrame () |
Class to hold state about the current activity of a controller.
The state is held as a single float value, which is updated by the various On*() methods. The activity is the maximum value on a single input frame. The value is saved to m_lastActivity on each call to OnInputFrame().
| void CControllerActivity::OnMouseMotion | ( | const MOUSE::PointerName & | relpointer, |
| int | differenceX, | ||
| int | differenceY | ||
| ) |
1.8.13