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; }
51 static void Clear(
void);
52 static bool Put(
eKeys Key,
bool AtFront =
false);
67 static eKeys Get(
int WaitMs = 1000,
char **UnknownCode = NULL);
110 struct termios savedTm;
111 virtual void Action(
void);
113 uint64_t ReadKeySequence(
void);
114 int MapCodeToFunc(uint64_t Code);
115 void PutKey(uint64_t Code,
bool Repeat =
false,
bool Release =
false);
120 static uint64_t MapFuncToCode(
int Func);
121 static void SetRawMode(
bool RawMode);
static void SetLearning(cRemote *Learning)
const char * GetSetup(void)
static const char * keyMacroPlugin
static eKeys Get(int WaitMs=1000, char **UnknownCode=NULL)
static time_t lastActivity
void PutSetup(const char *Setup)
static bool PutMacro(eKeys Key)
static void SetEnabled(bool Enabled)
static cCondVar keyPressed
bool Put(uint64_t Code, bool Repeat=false, bool Release=false)
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()...
static char * unknownCode
cRemote(const char *Name)
static bool KbdAvailable(void)
static cRemote * learning
static bool Enabled(void)
static void TriggerLastActivity(void)
Simulates user activity, for instance to keep the current menu open even if no remote control key has...
virtual bool Initialize(void)
static time_t LastActivity(void)
Absolute time when last key was delivered by Get().
static const char * callPlugin
static eKeys keys[MaxKeys]
static cTimeMs repeatTimeout
static bool CallPlugin(const char *Plugin)
Initiates calling the given plugin's main menu function.