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

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

#include <ButtonMapping.h>

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

Public Member Functions

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

Member Function Documentation

◆ OnMotion()

bool CHatDetector::OnMotion ( HAT_STATE  state)

Hat state has been updated.

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

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