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

#include <KeymapHandling.h>

Inheritance diagram for KODI::KEYMAP::CKeymapHandling:

Public Member Functions

 CKeymapHandling (JOYSTICK::IInputProvider *inputProvider, bool pPromiscuous, const IKeymapEnvironment *environment)
 ~CKeymapHandling () override
void UnregisterInputProvider ()
 Unregister the input provider.
JOYSTICK::IInputReceiverGetInputReceiver (const std::string &controllerId) const
IKeymapGetKeymap (const std::string &controllerId) const
void Notify (const Observable &obs, const ObservableMessage msg) override
 Process a message from an observable.
- Public Member Functions inherited from Observer
 Observer ()=default
virtual ~Observer ()=default

Constructor & Destructor Documentation

◆ CKeymapHandling()

CKeymapHandling::CKeymapHandling ( JOYSTICK::IInputProvider * inputProvider,
bool pPromiscuous,
const IKeymapEnvironment * environment )

◆ ~CKeymapHandling()

CKeymapHandling::~CKeymapHandling ( )

Member Function Documentation

◆ GetInputReceiver()

JOYSTICK::IInputReceiver * CKeymapHandling::GetInputReceiver ( const std::string & controllerId) const

◆ GetKeymap()

IKeymap * CKeymapHandling::GetKeymap ( const std::string & controllerId) const

◆ Notify()

void CKeymapHandling::Notify ( const Observable & obs,
const ObservableMessage msg )

Process a message from an observable.

obsThe observable that sends the message.
msgThe message.

Implements Observer.

◆ UnregisterInputProvider()

void KODI::KEYMAP::CKeymapHandling::UnregisterInputProvider ( )

Unregister the input provider.

Call this if the input provider is invalidated, such as if a user disconnects a controller. This prevents accessing the invalidated input provider when keymaps are unloaded upon destruction.

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