mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-05 20:58:33 +02:00
- controlapi: add rc fallback device
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -62,6 +62,7 @@ extern CBouquetManager *g_bouquetManager;
|
||||
#else
|
||||
#define RC_DEVICE "/dev/input/event1"
|
||||
#endif
|
||||
#define RC_DEVICE_FALLBACK "/dev/input/event0"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//=============================================================================
|
||||
@@ -972,6 +973,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
#endif
|
||||
#if 1
|
||||
int evd = open(RC_DEVICE, O_RDWR);
|
||||
if (evd < 0)
|
||||
evd = open(RC_DEVICE_FALLBACK, O_RDWR);
|
||||
if (evd < 0) {
|
||||
perror("opening " RC_DEVICE " failed");
|
||||
hh->SendError();
|
||||
|
Reference in New Issue
Block a user