kodi
Public Member Functions | List of all members
KODI::JOYSTICK::CPointerDetector Class Reference

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

#include <ButtonMapping.h>

Inheritance diagram for KODI::JOYSTICK::CPointerDetector:
Inheritance graph
[legend]
Collaboration diagram for KODI::JOYSTICK::CPointerDetector:
Collaboration graph
[legend]

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Detects when a mouse button should be mapped.

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: