40 bool Put(uint64_t Code,
bool Repeat =
false,
bool Release =
false);
41 bool Put(
const char *Code,
bool Repeat =
false,
bool Release =
false);
44 virtual bool Ready(
void) {
return true; }
52 static bool Put(
eKeys Key,
bool AtFront =
false);
67 static eKeys Get(
int WaitMs = 1000,
char **UnknownCode = NULL);
115 void PutKey(uint64_t Code,
bool Repeat =
false,
bool Release =
false);
virtual void Action(void)
A derived cThread class must implement the code it wants to execute as a separate thread in this func...
static bool KbdAvailable(void)
uint64_t ReadKeySequence(void)
int MapCodeToFunc(uint64_t Code)
void PutKey(uint64_t Code, bool Repeat=false, bool Release=false)
static void SetRawMode(bool RawMode)
static uint64_t MapFuncToCode(int Func)
static cTimeMs repeatTimeout
static bool Put(eKeys Key, bool AtFront=false)
static const char * callPlugin
static void SetLearning(cRemote *Learning)
bool Put(const char *Code, bool Repeat=false, bool Release=false)
static eKeys keys[MaxKeys]
bool Put(uint64_t Code, bool Repeat=false, bool Release=false)
static bool PutMacro(eKeys Key)
static const char * keyMacroPlugin
static void TriggerLastActivity(void)
Simulates user activity, for instance to keep the current menu open even if no remote control key has...
static bool Enabled(void)
const char * GetSetup(void)
static cRemote * learning
static cCondVar keyPressed
static bool CallPlugin(const char *Plugin)
Initiates calling the given plugin's main menu function.
cRemote(const char *Name)
static time_t LastActivity(void)
Absolute time when last key was delivered by Get().
static bool HasKeys(void)
static const char * GetPlugin(void)
Returns the name of the plugin that was set with a previous call to PutMacro() or CallPlugin().
virtual bool Initialize(void)
static char * unknownCode
static void SetEnabled(bool Enabled)
void PutSetup(const char *Setup)
static time_t lastActivity
static eKeys Get(int WaitMs=1000, char **UnknownCode=NULL)