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

Detects when a D-pad direction should be mapped. More...

#include <ButtonMapping.h>

Inheritance diagram for KODI::JOYSTICK::CHatDetector:

Public Member Functions

 CHatDetector (CButtonMapping *buttonMapping, unsigned int hatIndex)
bool OnMotion (HAT_STATE state)
 Hat 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 D-pad direction should be mapped.

Constructor & Destructor Documentation

◆ CHatDetector()

CHatDetector::CHatDetector ( CButtonMapping * buttonMapping,
unsigned int hatIndex )

Member Function Documentation

◆ OnMotion()

bool CHatDetector::OnMotion ( HAT_STATE state)

Hat state has been updated.

stateThe new state
True if state is a cardinal direction, false otherwise

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