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

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

#include <ButtonMapping.h>

Inheritance diagram for KODI::JOYSTICK::CButtonDetector:
KODI::JOYSTICK::CPrimitiveDetector

Public Member Functions

 CButtonDetector (CButtonMapping *buttonMapping, unsigned int buttonIndex)
 
bool OnMotion (bool bPressed)
 Button state 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 button should be mapped.

Constructor & Destructor Documentation

◆ CButtonDetector()

CButtonDetector::CButtonDetector ( CButtonMapping * buttonMapping,
unsigned int buttonIndex )

Member Function Documentation

◆ OnMotion()

bool CButtonDetector::OnMotion ( bool bPressed)

Button state has been updated.

Parameters
bPressedThe new state
Returns
True if this press was handled, false if it should fall through to the next driver handler

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