Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Interface for handling mouse driver events. More...
#include <IMouseDriverHandler.h>
Public Member Functions | |
virtual | ~IMouseDriverHandler (void)=default |
virtual bool | OnPosition (int x, int y)=0 |
Handle mouse position updates. | |
virtual bool | OnButtonPress (BUTTON_ID button)=0 |
A mouse button has been pressed. | |
virtual void | OnButtonRelease (BUTTON_ID button)=0 |
A mouse button has been released. | |
Interface for handling mouse driver events.
|
virtualdefault |
A mouse button has been pressed.
button | The index of the pressed button |
Implemented in KODI::GAME::CAgentInput, KODI::JOYSTICK::CButtonMapping, KODI::MOUSE::CDefaultMouseHandling, KODI::MOUSE::CMouseInputHandling, PERIPHERALS::CAddonButtonMapping, PERIPHERALS::CAddonInputHandling, and PERIPHERALS::CPeripheralMouse.
A mouse button has been released.
button | The index of the released button |
Implemented in KODI::GAME::CAgentInput, KODI::JOYSTICK::CButtonMapping, KODI::MOUSE::CDefaultMouseHandling, KODI::MOUSE::CMouseInputHandling, PERIPHERALS::CAddonButtonMapping, PERIPHERALS::CAddonInputHandling, and PERIPHERALS::CPeripheralMouse.
Handle mouse position updates.
x | The new x coordinate of the pointer |
y | The new y coordinate of the pointer |
The mouse uses a left-handed (graphics) cartesian coordinate system. Positive X is right, positive Y is down.
Implemented in KODI::GAME::CAgentInput, KODI::JOYSTICK::CButtonMapping, KODI::MOUSE::CDefaultMouseHandling, KODI::MOUSE::CMouseInputHandling, PERIPHERALS::CAddonButtonMapping, PERIPHERALS::CAddonInputHandling, and PERIPHERALS::CPeripheralMouse.