From 9f152710a55620792449227026cbbfe44588bc2c Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 27 Oct 2019 16:24:47 +0100 Subject: [PATCH] - rcinput: fix non existing info key for vu+ Signed-off-by: Thilo Graf --- src/create_rcsim_h.sh | 4 ++++ src/driver/rcinput.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/create_rcsim_h.sh b/src/create_rcsim_h.sh index 1884e43d4..6d83ec155 100644 --- a/src/create_rcsim_h.sh +++ b/src/create_rcsim_h.sh @@ -9,6 +9,10 @@ cat << EOF // rcsim.h - automatically created from driver/rcinput.h +#ifndef KEY_NONEXISTING +#define KEY_NONEXISTING 0x0 +#endif + #ifndef KEY_GAMES #define KEY_GAMES 0x1a1 /* Media Select Games */ #endif diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index 6dd3ba52c..4b6ac8306 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -54,6 +54,10 @@ #include +#ifndef KEY_NONEXISTING +#define KEY_NONEXISTING 0x0 +#endif + #ifndef KEY_OK #define KEY_OK 0x160 #endif @@ -225,7 +229,7 @@ class CRCInput RC_radio = KEY_RADIO, RC_text = KEY_TEXT, #if BOXMODEL_VUSOLO4K || BOXMODEL_VUDUO4K || BOXMODEL_VUULTIMO4K || BOXMODEL_VUZERO4K || BOXMODEL_VUDUO - RC_info = 0xFFFE, + RC_info = KEY_NONEXISTING, RC_epg = KEY_INFO, #else RC_info = KEY_INFO,