xbmc
IKeymapHandler.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 
11 #include <set>
12 #include <string>
13 
14 namespace KODI
15 {
16 namespace JOYSTICK
17 {
23 {
24 public:
25  virtual ~IKeymapHandler() = default;
26 
34  virtual bool HotkeysPressed(const std::set<std::string>& keyNames) const = 0;
35 
42  virtual std::string GetLastPressed() const = 0;
43 
49  virtual void OnPress(const std::string& keyName) = 0;
50 };
51 } // namespace JOYSTICK
52 } // namespace KODI
virtual void OnPress(const std::string &keyName)=0
Called when a key has emitted an action after bring pressed.
virtual std::string GetLastPressed() const =0
Get the key name of the last button pressed.
virtual bool HotkeysPressed(const std::set< std::string > &keyNames) const =0
Get the pressed state of the given keys.
Interface for a class working with a keymap.
Definition: IKeymapHandler.h:22
Controller configuration window.
Definition: AudioDecoder.h:18