| 1 |
/* |
| 2 |
* Copyright (C) 2016-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 |
namespace KODI |
| 12 |
{ |
| 13 |
namespace GAME |
| 14 |
{ |
| 15 |
/*! |
| 16 |
* \ingroup games |
| 17 |
* |
| 18 |
* \brief Input callbacks |
| 19 |
* |
| 20 |
* @todo Remove this file when Game API is updated for input polling |
| 21 |
*/ |
| 22 |
class IGameInputCallback |
| 23 |
{ |
| 24 |
public: |
| 25 |
virtual ~IGameInputCallback() = default; |
| 26 |
|
| 27 |
/*! |
| 28 |
* \brief Return true if the input source accepts input |
| 29 |
* |
| 30 |
* \return True if input should be processed, false otherwise |
| 31 |
*/ |
| 32 |
virtual bool AcceptsInput() const = 0; |
| 33 |
|
| 34 |
/*! |
| 35 |
* \brief Poll the input source for input |
| 36 |
*/ |
| 37 |
virtual void PollInput() = 0; |
| 38 |
}; |
| 39 |
} // namespace GAME |
| 40 |
} // namespace KODI |