kodi
Public Member Functions | List of all members
KODI::MOUSE::CMouseInputHandling Class Reference

Class to translate input from driver info to higher-level features. More...

#include <MouseInputHandling.h>

Inheritance diagram for KODI::MOUSE::CMouseInputHandling:
Inheritance graph
[legend]
Collaboration diagram for KODI::MOUSE::CMouseInputHandling:
Collaboration graph
[legend]

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...
 

Detailed Description

Class to translate input from driver info to higher-level features.

Member Function Documentation

◆ OnButtonPress()

bool CMouseInputHandling::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 CMouseInputHandling::OnButtonRelease ( BUTTON_ID  button)
overridevirtual

A mouse button has been released.

Parameters
buttonThe index of the released button

Implements KODI::MOUSE::IMouseDriverHandler.

◆ OnPosition()

bool CMouseInputHandling::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: