rcinput: try to fix some key handlings

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8056fa8688
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-06-11 (Sun, 11 Jun 2023)

Origin message was:
------------------
- rcinput: try to fix some key handlings

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2023-06-11 20:14:51 +02:00
parent 21fbf8d384
commit 3d0c385f6e
3 changed files with 44 additions and 33 deletions

View File

@@ -100,6 +100,7 @@ class CRCInput
bool checkdev();
void close();
int translate(int code);
int translate_revert(int code);
void calculateMaxFd(void);
int checkTimers();
bool mayRepeat(uint32_t key, bool bAllowRepeatLR = false);
@@ -239,7 +240,6 @@ class CRCInput
CRCInput(); //constructor - opens rc-device and starts needed threads
~CRCInput(); //destructor - closes rc-device
static bool isNumeric(const neutrino_msg_t key);
static int getNumericValue(const neutrino_msg_t key);
static unsigned int convertDigitToKey(const unsigned int digit);
@@ -268,6 +268,7 @@ class CRCInput
int messageLoop(bool anyKeyCancels = false, int timeout = -1);
int translateRevert(int c) { return translate_revert(c); };
void setLongPressAny(bool b) { longPressAny = b; };
void setKeyRepeatDelay(unsigned int start_ms, unsigned int repeat_ms);
};