|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class to hold state about the current activity of a controller. More...
#include <ControllerActivity.h>
Public Member Functions | |
| CControllerActivity ()=default | |
| ~CControllerActivity ()=default | |
| 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().
|
default |
|
default |
| void CControllerActivity::ClearButtonState | ( | ) |
| float CControllerActivity::GetActivation | ( | ) | const |
| void CControllerActivity::OnAnalogStickMotion | ( | float | x, |
| float | y ) |
| void CControllerActivity::OnButtonMotion | ( | float | magnitude | ) |
| void CControllerActivity::OnInputFrame | ( | ) |
| void CControllerActivity::OnKeyPress | ( | const KEYBOARD::KeyName & | key | ) |
| void CControllerActivity::OnKeyRelease | ( | const KEYBOARD::KeyName & | key | ) |
| void CControllerActivity::OnMouseButtonPress | ( | const MOUSE::ButtonName & | button | ) |
| void CControllerActivity::OnMouseButtonRelease | ( | const MOUSE::ButtonName & | button | ) |
| void CControllerActivity::OnMouseMotion | ( | const MOUSE::PointerName & | relpointer, |
| int | differenceX, | ||
| int | differenceY ) |
| void CControllerActivity::OnThrottleMotion | ( | float | position | ) |
| void CControllerActivity::OnWheelMotion | ( | float | position | ) |