kodi
IKeymapEnvironment.h
1 /*
2  * Copyright (C) 2017-2024 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 namespace KODI
12 {
13 namespace KEYMAP
14 {
28 {
29 public:
30  virtual ~IKeymapEnvironment() = default;
31 
37  virtual int GetWindowID() const = 0;
38 
44  virtual void SetWindowID(int windowId) = 0;
45 
53  virtual int GetFallthrough(int windowId) const = 0;
54 
59  virtual bool UseGlobalFallthrough() const = 0;
60 
64  virtual bool UseEasterEgg() const = 0;
65 };
66 } // namespace KEYMAP
67 } // namespace KODI
virtual int GetFallthrough(int windowId) const =0
Get the fallthrough window to when a key definition is missing.
Customizes the environment in which keymapping is performed.
Definition: IKeymapEnvironment.h:27
virtual bool UseGlobalFallthrough() const =0
Specify if the global keymap should be used when the window and fallback window are undefined...
Definition: AudioDecoder.h:18
virtual bool UseEasterEgg() const =0
Specify if the agent should monitor for easter egg presses.
virtual int GetWindowID() const =0
Get the window ID for which actions should be translated.
virtual void SetWindowID(int windowId)=0
Set the window ID.