mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
nhttpd: just push remote keys into rcinput directly
This commit is contained in:
@@ -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();
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user