kodi
Public Member Functions | List of all members
KODI::MOUSE::CDefaultMouseHandling Class Reference
Inheritance diagram for KODI::MOUSE::CDefaultMouseHandling:
Inheritance graph
[legend]
Collaboration diagram for KODI::MOUSE::CDefaultMouseHandling:
Collaboration graph
[legend]

Public Member Functions

 CDefaultMouseHandling (PERIPHERALS::CPeripheral *peripheral, IMouseInputHandler *handler)
 
bool Load ()
 
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...
 

Member Function Documentation

◆ OnButtonPress()

bool CDefaultMouseHandling::OnButtonPress ( BUTTON_ID  button)
overridevirtual

A mouse button has been pressed.

Parameters
buttonThe index of the pressed button
Returns
True if the event was handled, otherwise false

Implements KODI::MOUSE::IMouseDriverHandler.

◆ OnButtonRelease()

void CDefaultMouseHandling::OnButtonRelease ( BUTTON_ID  button)
overridevirtual

A mouse button has been released.

Parameters
buttonThe index of the released button

Implements KODI::MOUSE::IMouseDriverHandler.

◆ OnPosition()

bool CDefaultMouseHandling::OnPosition ( int  x,
int  y 
)
overridevirtual

Handle mouse position updates.

Parameters
xThe new x coordinate of the pointer
yThe new y coordinate of the pointer

The mouse uses a left-handed (graphics) cartesian coordinate system. Positive X is right, positive Y is down.

Returns
True if the event was handled, false otherwise

Implements KODI::MOUSE::IMouseDriverHandler.


The documentation for this class was generated from the following files: