xbmc
KeyboardInputHandling.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 "input/keyboard/interfaces/IKeyboardDriverHandler.h"
12 
13 namespace KODI
14 {
15 namespace JOYSTICK
16 {
17 class IButtonMap;
18 }
19 
20 namespace KEYBOARD
21 {
22 class IKeyboardInputHandler;
23 
30 {
31 public:
33 
34  ~CKeyboardInputHandling(void) override = default;
35 
36  // implementation of IKeyboardDriverHandler
37  bool OnKeyPress(const CKey& key) override;
38  void OnKeyRelease(const CKey& key) override;
39 
40 private:
41  // Construction parameters
42  IKeyboardInputHandler* const m_handler;
43  JOYSTICK::IButtonMap* const m_buttonMap;
44 };
45 } // namespace KEYBOARD
46 } // namespace KODI
Button map interface to translate between the driver's raw button/hat/axis elements and physical joys...
Definition: IButtonMap.h:28
Interface for handling input events for keyboards.
Definition: IKeyboardInputHandler.h:27
Controller configuration window.
Definition: AudioDecoder.h:18
Interface for handling keyboard events.
Definition: IKeyboardDriverHandler.h:21
Definition: Key.h:135
Class to translate input from Kodi keycodes to key names defined by the keyboard's controller profile...
Definition: KeyboardInputHandling.h:29