2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2023-12-16 18:48:25 +00:00
|
|
|
// ES-DE
|
2020-06-26 15:17:35 +00:00
|
|
|
// CECInput.h
|
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// CEC (Consumer Electronics Control) input.
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
|
|
|
|
2017-11-08 22:22:15 +00:00
|
|
|
#ifndef ES_CORE_CECINPUT_H
|
|
|
|
#define ES_CORE_CECINPUT_H
|
|
|
|
|
2017-11-19 23:06:04 +00:00
|
|
|
#include <string>
|
|
|
|
|
2021-07-07 18:31:46 +00:00
|
|
|
namespace CEC
|
|
|
|
{
|
|
|
|
class ICECAdapter;
|
|
|
|
}
|
2017-11-08 22:22:15 +00:00
|
|
|
|
|
|
|
class CECInput
|
|
|
|
{
|
|
|
|
public:
|
2022-01-04 20:21:26 +00:00
|
|
|
CECInput();
|
|
|
|
~CECInput();
|
|
|
|
|
2020-06-26 15:17:35 +00:00
|
|
|
static std::string getAlertTypeString(const unsigned int _type);
|
|
|
|
static std::string getOpCodeString(const unsigned int _opCode);
|
|
|
|
static std::string getKeyCodeString(const unsigned int _keyCode);
|
2017-11-08 22:22:15 +00:00
|
|
|
|
|
|
|
private:
|
2020-06-26 15:17:35 +00:00
|
|
|
CEC::ICECAdapter* mlibCEC;
|
|
|
|
};
|
2017-11-08 22:22:15 +00:00
|
|
|
|
|
|
|
#endif // ES_CORE_CECINPUT_H
|