kodi
PeripheralHID.h
1 /*
2  * Copyright (C) 2005-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 "Peripheral.h"
12 #include "input/keyboard/XBMC_keyboard.h"
13 
14 namespace PERIPHERALS
15 {
20 {
21 public:
23  const PeripheralScanResult& scanResult,
24  CPeripheralBus* bus);
25  ~CPeripheralHID(void) override;
26  bool InitialiseFeature(const PeripheralFeature feature) override;
27  virtual bool LookupSymAndUnicode(XBMC_keysym& keysym, uint8_t* key, char* unicode)
28  {
29  return false;
30  }
31  void OnSettingChanged(const std::string& strChangedSetting) override;
32 
33 protected:
34  std::string m_strKeymap;
35 };
36 } // namespace PERIPHERALS
void OnSettingChanged(const std::string &strChangedSetting) override
Called when a setting changed.
Definition: PeripheralHID.cpp:77
Definition: PeripheralTypes.h:326
Definition: RetroPlayerInput.h:15
Definition: PeripheralHID.h:19
Definition: XBMC_keyboard.h:39
bool InitialiseFeature(const PeripheralFeature feature) override
Initialise one of the features of this peripheral.
Definition: PeripheralHID.cpp:37
Definition: PeripheralBus.h:36
Definition: Peripheral.h:71
Definition: Peripherals.h:56