| 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 |
|
| 19 |
/*! |
| 20 |
* \ingroup games |
| 21 |
* |
| 22 |
* \brief Handles events for hardware such as reset buttons |
| 23 |
*/ |
| 24 |
class CGameClientHardware : public HARDWARE::IHardwareInput |
| 25 |
{ |
| 26 |
public: |
| 27 |
/*! |
| 28 |
* \brief Constructor |
| 29 |
* |
| 30 |
* \param gameClient The game client implementation |
| 31 |
*/ |
| 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 |