2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
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>
|
|
|
|
|
2017-11-08 22:22:15 +00:00
|
|
|
namespace CEC { class ICECAdapter; }
|
|
|
|
|
|
|
|
class CECInput
|
|
|
|
{
|
|
|
|
public:
|
2020-06-26 15:17:35 +00:00
|
|
|
static void init();
|
|
|
|
static void deinit();
|
|
|
|
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
|
|
|
CECInput();
|
|
|
|
~CECInput();
|
2017-11-08 22:22:15 +00:00
|
|
|
|
2020-08-23 15:04:30 +00:00
|
|
|
static CECInput* sInstance;
|
2017-11-08 22:22:15 +00:00
|
|
|
|
2020-06-26 15:17:35 +00:00
|
|
|
CEC::ICECAdapter* mlibCEC;
|
|
|
|
};
|
2017-11-08 22:22:15 +00:00
|
|
|
|
|
|
|
#endif // ES_CORE_CECINPUT_H
|