Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class to translate input from driver info to higher-level features. More...
#include <MouseInputHandling.h>
Public Member Functions | |
CMouseInputHandling (IMouseInputHandler *handler, JOYSTICK::IButtonMap *buttonMap) | |
~CMouseInputHandling (void) override=default | |
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 |
Class to translate input from driver info to higher-level features.
CMouseInputHandling::CMouseInputHandling | ( | IMouseInputHandler * | handler, |
JOYSTICK::IButtonMap * | buttonMap ) |
|
overridedefault |
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.