Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <DefaultMouseHandling.h>
Public Member Functions | |
CDefaultMouseHandling (PERIPHERALS::CPeripheral *peripheral, IMouseInputHandler *handler) | |
~CDefaultMouseHandling () override | |
bool | Load () |
bool | OnPosition (int x, int y) override |
Handle mouse position updates. | |
bool | OnButtonPress (BUTTON_ID button) override |
A mouse button has been pressed. | |
void | OnButtonRelease (BUTTON_ID button) override |
A mouse button has been released. | |
Public Member Functions inherited from KODI::MOUSE::IMouseDriverHandler | |
virtual | ~IMouseDriverHandler (void)=default |
CDefaultMouseHandling::CDefaultMouseHandling | ( | PERIPHERALS::CPeripheral * | peripheral, |
IMouseInputHandler * | handler ) |
|
override |
bool CDefaultMouseHandling::Load | ( | ) |
A mouse button has been pressed.
button | The index of the pressed button |
Implements KODI::MOUSE::IMouseDriverHandler.
A mouse button has been released.
button | The index of the released button |
Implements KODI::MOUSE::IMouseDriverHandler.
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.
Implements KODI::MOUSE::IMouseDriverHandler.