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