xbmc
IKeymapEnvironment.h
1 /*
2  * Copyright (C) 2017-2018 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 
22 {
23 public:
24  virtual ~IKeymapEnvironment() = default;
25 
31  virtual int GetWindowID() const = 0;
32 
38  virtual void SetWindowID(int windowId) = 0;
39 
47  virtual int GetFallthrough(int windowId) const = 0;
48 
53  virtual bool UseGlobalFallthrough() const = 0;
54 
58  virtual bool UseEasterEgg() const = 0;
59 };
virtual int GetFallthrough(int windowId) const =0
Get the fallthrough window to when a key definition is missing.
virtual bool UseGlobalFallthrough() const =0
Specify if the global keymap should be used when the window and fallback window are undefined...
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.
Customizes the environment in which keymapping is performed.
Definition: IKeymapEnvironment.h:21
virtual void SetWindowID(int windowId)=0
Set the window ID.