Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
CKeymapEnvironment Class Reference

#include <KeymapEnvironment.h>

Inheritance diagram for CKeymapEnvironment:
IKeymapEnvironment

Public Member Functions

 ~CKeymapEnvironment () override=default
 
int GetWindowID () const override
 Get the window ID for which actions should be translated. More...
 
void SetWindowID (int windowId) override
 Set the window ID. More...
 
int GetFallthrough (int windowId) const override
 Get the fallthrough window to when a key definition is missing. More...
 
bool UseGlobalFallthrough () const override
 Specify if the global keymap should be used when the window and fallback window are undefined. More...
 
bool UseEasterEgg () const override
 Specify if the agent should monitor for easter egg presses. More...
 
- Public Member Functions inherited from IKeymapEnvironment
virtual ~IKeymapEnvironment ()=default
 

Constructor & Destructor Documentation

◆ ~CKeymapEnvironment()

CKeymapEnvironment::~CKeymapEnvironment ( )
overridedefault

Member Function Documentation

◆ GetFallthrough()

int CKeymapEnvironment::GetFallthrough ( int  windowId) const
overridevirtual

Get the fallthrough window to when a key definition is missing.

Parameters
windowIdThe window ID
Returns
The window ID, or -1 for no fallthrough

Implements IKeymapEnvironment.

◆ GetWindowID()

int CKeymapEnvironment::GetWindowID ( ) const
inlineoverridevirtual

Get the window ID for which actions should be translated.

Returns
The window ID

Implements IKeymapEnvironment.

◆ SetWindowID()

void CKeymapEnvironment::SetWindowID ( int  windowId)
inlineoverridevirtual

Set the window ID.

Parameters
Thewindow ID, used for translating actions

Implements IKeymapEnvironment.

◆ UseEasterEgg()

bool CKeymapEnvironment::UseEasterEgg ( ) const
inlineoverridevirtual

Specify if the agent should monitor for easter egg presses.

Implements IKeymapEnvironment.

◆ UseGlobalFallthrough()

bool CKeymapEnvironment::UseGlobalFallthrough ( ) const
inlineoverridevirtual

Specify if the global keymap should be used when the window and fallback window are undefined.

Implements IKeymapEnvironment.


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