kodi
Protected Member Functions | List of all members
KODI::JOYSTICK::CPrimitiveDetector Class Reference

Detects and dispatches mapping events. More...

#include <ButtonMapping.h>

Inheritance diagram for KODI::JOYSTICK::CPrimitiveDetector:
Inheritance graph
[legend]

Protected Member Functions

 CPrimitiveDetector (CButtonMapping *buttonMapping)
 
bool MapPrimitive (const CDriverPrimitive &primitive)
 Dispatch a mapping event. More...
 

Detailed Description

Detects and dispatches mapping events.

A mapping event usually occurs when a driver primitive is pressed or exceeds a certain threshold.

Detection can be quite complicated due to driver bugs, so each type of driver primitive is given its own detector class inheriting from this one.

Member Function Documentation

◆ MapPrimitive()

bool CPrimitiveDetector::MapPrimitive ( const CDriverPrimitive primitive)
protected

Dispatch a mapping event.

Returns
True if the primitive was mapped, false otherwise

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