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 | OnMotion (const PointerName &relpointer, int dx, int dy)=0 |
A relative pointer has moved. | |
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.
relpointer | The name of the relative pointer being moved |
dx | The relative x coordinate of motion |
dy | 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.