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

Detects when a mouse button should be mapped. More...

#include <ButtonMapping.h>

Inheritance diagram for KODI::JOYSTICK::CPointerDetector:
KODI::JOYSTICK::CPrimitiveDetector

Public Member Functions

 CPointerDetector (CButtonMapping *buttonMapping)
 
bool OnMotion (int x, int y)
 Pointer position has been updated.
 

Additional Inherited Members

- Protected Member Functions inherited from KODI::JOYSTICK::CPrimitiveDetector
 CPrimitiveDetector (CButtonMapping *buttonMapping)
 
bool MapPrimitive (const CDriverPrimitive &primitive)
 Dispatch a mapping event.
 

Detailed Description

Detects when a mouse button should be mapped.

Constructor & Destructor Documentation

◆ CPointerDetector()

CPointerDetector::CPointerDetector ( CButtonMapping * buttonMapping)

Member Function Documentation

◆ OnMotion()

bool CPointerDetector::OnMotion ( int x,
int y )

Pointer position has been updated.

Parameters
xThe new x coordinate
yThe new y coordinate
Returns
Always true - pointer motion events are always absorbed while button mapping

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