|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Interface for handling mouse events. More...
#include <IMouseInputHandler.h>
Public Member Functions | |
| virtual | ~IMouseInputHandler (void)=default |
| virtual std::string | ControllerID (void) const =0 |
| The controller profile for this mouse input handler. | |
| virtual bool | OnPosition (const PointerName &relpointer, int positionX, int positionY)=0 |
| A relative pointer has moved to a new absolute position. | |
| virtual bool | OnMotion (const PointerName &relpointer, int differenceX, int differenceY)=0 |
| A relative pointer has moved a relative distance. | |
| virtual bool | OnButtonPress (const ButtonName &button)=0 |
| A mouse button has been pressed. | |
| virtual void | OnButtonRelease (const ButtonName &button)=0 |
| A mouse button has been released. | |
| virtual void | OnInputFrame ()=0 |
| Called at the end of the frame that provided input. | |
Interface for handling mouse events.
|
virtualdefault |
|
pure virtual |
The controller profile for this mouse input handler.
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.
|
pure virtual |
A mouse button has been pressed.
| button | The name of the feature being pressed |
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.
|
pure virtual |
A mouse button has been released.
| button | The name of the feature being released |
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.
|
pure virtual |
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().
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.
|
pure virtual |
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.
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.
|
pure virtual |
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.
Implemented in KODI::GAME::CAgentMouse, and KODI::GAME::CGameClientMouse.