|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Handles mouse events for game agent functionality. More...
#include <AgentMouse.h>
Public Member Functions | |
| CAgentMouse (PERIPHERALS::PeripheralPtr peripheral) | |
| ~CAgentMouse () override | |
| void | Initialize () |
| void | Deinitialize () |
| void | ClearButtonState () |
| float | GetActivation () const |
| ControllerPtr | Appearance () const |
| std::string | ControllerID () const override |
| The controller profile for this mouse input handler. | |
| bool | OnPosition (const MOUSE::PointerName &relpointer, int positionX, int positionY) override |
| A relative pointer has moved to a new absolute position. | |
| bool | OnMotion (const MOUSE::PointerName &relpointer, int differenceX, int differenceY) override |
| A relative pointer has moved a relative distance. | |
| bool | OnButtonPress (const MOUSE::ButtonName &button) override |
| A mouse button has been pressed. | |
| void | OnButtonRelease (const MOUSE::ButtonName &button) override |
| A mouse button has been released. | |
| void | OnInputFrame () override |
| Called at the end of the frame that provided input. | |
Public Member Functions inherited from KODI::MOUSE::IMouseInputHandler | |
| virtual | ~IMouseInputHandler (void)=default |
Handles mouse events for game agent functionality.
| CAgentMouse::CAgentMouse | ( | PERIPHERALS::PeripheralPtr | peripheral | ) |
|
overridedefault |
|
inline |
| void CAgentMouse::ClearButtonState | ( | ) |
|
overridevirtual |
The controller profile for this mouse input handler.
Implements KODI::MOUSE::IMouseInputHandler.
| void CAgentMouse::Deinitialize | ( | ) |
| float CAgentMouse::GetActivation | ( | ) | const |
| void CAgentMouse::Initialize | ( | ) |
|
overridevirtual |
A mouse button has been pressed.
| button | The name of the feature being pressed |
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
A mouse button has been released.
| button | The name of the feature being released |
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
Called at the end of the frame that provided input.
This can be as a result of a pointer update, a button press, or a button release. All three events will result in a call to OnInputFrame().
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
A relative pointer has moved a relative distance.
| relpointer | The name of the relative pointer being moved |
| differenceX | The relative x coordinate of motion |
| differenceY | The relative y coordinate of motion |
The mouse uses a left-handed (graphics) cartesian coordinate system. Positive X is right, positive Y is down.
Implements KODI::MOUSE::IMouseInputHandler.
|
inlineoverridevirtual |
A relative pointer has moved to a new absolute position.
| relpointer | The name of the relative pointer being moved |
| positionX | The absolute x coordinate of motion |
| positionY | The absolute y coordinate of motion |
The mouse uses a left-handed (graphics) cartesian coordinate system. Positive X is right, positive Y is down.
Implements KODI::MOUSE::IMouseInputHandler.