mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +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())
|
if (!hh->ParamList["repeat"].empty())
|
||||||
repeat = atoi(hh->ParamList["repeat"].c_str());
|
repeat = atoi(hh->ParamList["repeat"].c_str());
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
int evd = open(EVENTDEV, O_RDWR);
|
int evd = open(EVENTDEV, O_RDWR);
|
||||||
if (evd < 0) {
|
if (evd < 0) {
|
||||||
hh->SendError();
|
hh->SendError();
|
||||||
@@ -747,6 +748,9 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
close(evd);
|
close(evd);
|
||||||
|
#endif
|
||||||
|
/* 0 == KEY_PRESSED in rcinput.cpp */
|
||||||
|
g_RCInput->postMsg((neutrino_msg_t) sendcode, 0);
|
||||||
hh->SendOk();
|
hh->SendOk();
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user