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 
25 {
26 public:
32  explicit CGameClientHardware(CGameClient& gameClient);
33 
34  ~CGameClientHardware() override = default;
35 
36  // Implementation of IHardwareInput
37  void OnResetButton() override;
38 
39 private:
40  // Construction parameter
41  CGameClient& m_gameClient;
42 };
43 } // namespace GAME
44 } // namespace KODI
Handles events for hardware such as reset buttons.
Definition: GameClientHardware.h:24
Interface between Kodi and Game add-ons.
Definition: GameClient.h:116
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