mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
controlapi: fix control of external plugins (e.g. msgbox or shellexec)
We have to send the keys directyl to rc-device instead of using g_RCInput->postMsg()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 06a6608413
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-19 (Fri, 19 Jan 2018)
Origin message was:
------------------
- controlapi: fix control of external plugins (e.g. msgbox or shellexec)
We have to send the keys directyl to rc-device instead of using g_RCInput->postMsg()
------------------
This commit was generated by Migit
This commit is contained in:
@@ -63,7 +63,12 @@ extern cVideo * videoDecoder;
|
|||||||
|
|
||||||
extern CPlugins *g_Plugins;//for relodplugins
|
extern CPlugins *g_Plugins;//for relodplugins
|
||||||
extern CBouquetManager *g_bouquetManager;
|
extern CBouquetManager *g_bouquetManager;
|
||||||
#define EVENTDEV "/dev/input/input0"
|
|
||||||
|
#if HAVE_COOL_HARDWARE
|
||||||
|
#define RC_DEVICE "/dev/input/nevis_ir"
|
||||||
|
#else
|
||||||
|
#define RC_DEVICE "/dev/input/event1"
|
||||||
|
#endif
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@@ -925,10 +930,10 @@ 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
|
#if 1
|
||||||
int evd = open(EVENTDEV, O_RDWR);
|
int evd = open(RC_DEVICE, O_RDWR);
|
||||||
if (evd < 0) {
|
if (evd < 0) {
|
||||||
perror("opening " EVENTDEV " failed");
|
perror("opening " RC_DEVICE " failed");
|
||||||
hh->SendError();
|
hh->SendError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -945,9 +950,10 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
close(evd);
|
close(evd);
|
||||||
#endif
|
#else
|
||||||
/* 0 == KEY_PRESSED in rcinput.cpp */
|
/* 0 == KEY_PRESSED in rcinput.cpp */
|
||||||
g_RCInput->postMsg((neutrino_msg_t) sendcode, 0);
|
g_RCInput->postMsg((neutrino_msg_t) sendcode, 0);
|
||||||
|
#endif
|
||||||
hh->SendOk();
|
hh->SendOk();
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user