kodi
|
Class to translate input from driver info to higher-level features. More...
#include <MouseInputHandling.h>
Public Member Functions | |
CMouseInputHandling (IMouseInputHandler *handler, JOYSTICK::IButtonMap *buttonMap) | |
bool | OnPosition (int x, int y) override |
Handle mouse position updates. More... | |
bool | OnButtonPress (BUTTON_ID button) override |
A mouse button has been pressed. More... | |
void | OnButtonRelease (BUTTON_ID button) override |
A mouse button has been released. More... | |
Class to translate input from driver info to higher-level features.
|
overridevirtual |
A mouse button has been pressed.
button | The index of the pressed button |
Implements KODI::MOUSE::IMouseDriverHandler.
|
overridevirtual |
A mouse button has been released.
button | The index of the released button |
Implements KODI::MOUSE::IMouseDriverHandler.
|
overridevirtual |
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.