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

Interface for handling button maps. More...

#include <IButtonMapCallback.h>

Inheritance diagram for KODI::JOYSTICK::IButtonMapCallback:
KODI::JOYSTICK::CButtonMapping PERIPHERALS::CAddonButtonMapping

Public Member Functions

virtual ~IButtonMapCallback ()=default
 
virtual void SaveButtonMap ()=0
 Save the button map.
 
virtual void ResetIgnoredPrimitives ()=0
 Clear the list of ignored driver primitives.
 
virtual void RevertButtonMap ()=0
 Revert changes to the button map since the last time it was loaded or committed to disk.
 

Detailed Description

Interface for handling button maps.

Constructor & Destructor Documentation

◆ ~IButtonMapCallback()

virtual KODI::JOYSTICK::IButtonMapCallback::~IButtonMapCallback ( )
virtualdefault

Member Function Documentation

◆ ResetIgnoredPrimitives()

virtual void KODI::JOYSTICK::IButtonMapCallback::ResetIgnoredPrimitives ( )
pure virtual

Clear the list of ignored driver primitives.

Called if the user begins capturing primitives to be ignored, and no primitives are captured before the dialog is accepted by the user.

In this case, the button mapper won't have been given access to the button map, so a callback is needed to indicate that no primitives were captured and the user accepted this.

Implemented in KODI::JOYSTICK::CButtonMapping, and PERIPHERALS::CAddonButtonMapping.

◆ RevertButtonMap()

virtual void KODI::JOYSTICK::IButtonMapCallback::RevertButtonMap ( )
pure virtual

Revert changes to the button map since the last time it was loaded or committed to disk.

Implemented in KODI::JOYSTICK::CButtonMapping, and PERIPHERALS::CAddonButtonMapping.

◆ SaveButtonMap()

virtual void KODI::JOYSTICK::IButtonMapCallback::SaveButtonMap ( )
pure virtual

Save the button map.

Implemented in KODI::JOYSTICK::CButtonMapping, and PERIPHERALS::CAddonButtonMapping.


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