mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
neutrino: add support for the SPARK frontpanel buttons
Origin commit data
------------------
Branch: ni/coolstream
Commit: 04ba38f14f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-03-19 (Mon, 19 Mar 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -61,8 +61,13 @@
|
||||
#include <neutrino.h>
|
||||
#include <cs_api.h>
|
||||
|
||||
//const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir", "/dev/input/event0"};
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
/* this relies on event0 being the AOTOM frontpanel driver device
|
||||
* TODO: what if another input device is present? */
|
||||
const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir", "/dev/input/event0"};
|
||||
#else
|
||||
const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir"};
|
||||
#endif
|
||||
typedef struct input_event t_input_event;
|
||||
|
||||
#ifdef KEYBOARD_INSTEAD_OF_REMOTE_CONTROL
|
||||
@@ -1155,6 +1160,8 @@ printf("[neutrino] CSectionsdClient::EVT_GOT_CN_EPG\n");
|
||||
|
||||
if(ret != sizeof(t_input_event))
|
||||
continue;
|
||||
if (ev.type == EV_SYN)
|
||||
continue; /* ignore... */
|
||||
SHTDCNT::getInstance()->resetSleepTimer();
|
||||
uint32_t trkey = translate(ev.code, i);
|
||||
#ifdef _DEBUG
|
||||
|
Reference in New Issue
Block a user