kodi
|
Interface for handling mouse driver events. More...
#include <IMouseDriverHandler.h>
Public Member Functions | |
virtual bool | OnPosition (int x, int y)=0 |
Handle mouse position updates. More... | |
virtual bool | OnButtonPress (BUTTON_ID button)=0 |
A mouse button has been pressed. More... | |
virtual void | OnButtonRelease (BUTTON_ID button)=0 |
A mouse button has been released. More... | |
Interface for handling mouse driver events.
|
pure virtual |
A mouse button has been pressed.
button | The index of the pressed button |
Implemented in KODI::JOYSTICK::CButtonMapping, KODI::GAME::CAgentInput, PERIPHERALS::CAddonInputHandling, PERIPHERALS::CAddonButtonMapping, KODI::MOUSE::CDefaultMouseHandling, PERIPHERALS::CPeripheralMouse, and KODI::MOUSE::CMouseInputHandling.
|
pure virtual |
A mouse button has been released.
button | The index of the released button |
Implemented in KODI::JOYSTICK::CButtonMapping, KODI::GAME::CAgentInput, PERIPHERALS::CAddonInputHandling, PERIPHERALS::CAddonButtonMapping, KODI::MOUSE::CDefaultMouseHandling, PERIPHERALS::CPeripheralMouse, and KODI::MOUSE::CMouseInputHandling.
|
pure virtual |
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::JOYSTICK::CButtonMapping, KODI::GAME::CAgentInput, PERIPHERALS::CAddonInputHandling, PERIPHERALS::CAddonButtonMapping, KODI::MOUSE::CDefaultMouseHandling, PERIPHERALS::CPeripheralMouse, and KODI::MOUSE::CMouseInputHandling.