xbmc
GameClientHardware.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/hardware/IHardwareInput.h"
12 
13 namespace KODI
14 {
15 namespace GAME
16 {
17 class CGameClient;
18 
24 {
25 public:
31  explicit CGameClientHardware(CGameClient& gameClient);
32 
33  ~CGameClientHardware() override = default;
34 
35  // Implementation of IHardwareInput
36  void OnResetButton() override;
37 
38 private:
39  // Construction parameter
40  CGameClient& m_gameClient;
41 };
42 } // namespace GAME
43 } // namespace KODI
Handles events for hardware such as reset buttons.
Definition: GameClientHardware.h:23
Interface between Kodi and Game add-ons.
Definition: GameClient.h:115
Controller configuration window.
Definition: AudioDecoder.h:18
CGameClientHardware(CGameClient &gameClient)
Constructor.
Definition: GameClientHardware.cpp:17
Handles events for hardware such as reset buttons on a game console.
Definition: IHardwareInput.h:21
void OnResetButton() override
A hardware reset button has been pressed.
Definition: GameClientHardware.cpp:21