Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::MOUSE::CDefaultMouseHandling Class Reference

#include <DefaultMouseHandling.h>

Inheritance diagram for KODI::MOUSE::CDefaultMouseHandling:
KODI::MOUSE::IMouseDriverHandler

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
 

Constructor & Destructor Documentation

◆ CDefaultMouseHandling()

CDefaultMouseHandling::CDefaultMouseHandling ( PERIPHERALS::CPeripheral * peripheral,
IMouseInputHandler * handler )

◆ ~CDefaultMouseHandling()

CDefaultMouseHandling::~CDefaultMouseHandling ( void )
override

Member Function Documentation

◆ Load()

bool CDefaultMouseHandling::Load ( )

◆ 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: