From ab3c2b9cf9bb95e499b5c9b35638ec37d19c6a34 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 9 Jan 2016 20:16:12 +0100 Subject: [PATCH] nhttpd: just push remote keys into rcinput directly --- src/nhttpd/tuxboxapi/controlapi.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 5a5ca5c29..b19b43c88 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -728,6 +728,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) { if (!hh->ParamList["repeat"].empty()) repeat = atoi(hh->ParamList["repeat"].c_str()); #endif +#if 0 int evd = open(EVENTDEV, O_RDWR); if (evd < 0) { hh->SendError(); @@ -747,6 +748,9 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) { return; } close(evd); +#endif + /* 0 == KEY_PRESSED in rcinput.cpp */ + g_RCInput->postMsg((neutrino_msg_t) sendcode, 0); hh->SendOk(); } //-----------------------------------------------------------------------------