From 3b37cacd891de13be90a9f2f2ca7bbb41db31c5f Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 15 Jul 2022 22:07:54 +0200 Subject: [PATCH] rcinput: add RC_f1..10 keys Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/852eba8deec2d8521411c2bd77a0a4341b4c213c Author: vanhofen Date: 2022-07-15 (Fri, 15 Jul 2022) Origin message was: ------------------ - rcinput: add RC_f1..10 keys --- 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 0d1f9eef0..3b39528f4 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1721,6 +1721,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 };