From 3e57db2ad8992c1b3c8864a95808db2c59275d07 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 15 Jul 2022 22:07:54 +0200 Subject: [PATCH] - rcinput: add RC_f1..10 keys Signed-off-by: Thilo Graf --- src/driver/rcinput.cpp | 20 ++++++++++++++++++++ src/driver/rcinput.h | 11 +++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index bac82c517..010387951 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1717,6 +1717,26 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key) return "play / pause"; case RC_pvr: return "pvr"; + case RC_f1: + return "f1"; + case RC_f2: + return "f2"; + case RC_f3: + return "f3"; + case RC_f4: + return "f4"; + case RC_f5: + return "f5"; + case RC_f6: + return "f6"; + case RC_f7: + return "f7"; + case RC_f8: + return "f8"; + case RC_f9: + return "f9"; + case RC_f10: + return "f10"; default: printf("unknown key: %d (0x%x) \n", key, key); return "unknown"; diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index e0620d2d0..28a1af247 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -270,6 +270,17 @@ class CRCInput RC_analog_on = KEY_ANALOGON, RC_analog_off = KEY_ANALOGOFF, + RC_f1 = KEY_F1, + RC_f2 = KEY_F2, + RC_f3 = KEY_F3, + RC_f4 = KEY_F4, + RC_f5 = KEY_F5, + RC_f6 = KEY_F6, + RC_f7 = KEY_F7, + RC_f8 = KEY_F8, + RC_f9 = KEY_F9, + RC_f10 = KEY_F10, + RC_timeout = 0xFFFFFFFF, RC_nokey = RC_NOKEY };