mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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 <neutrino.h>
|
||||||
#include <cs_api.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"};
|
const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir"};
|
||||||
|
#endif
|
||||||
typedef struct input_event t_input_event;
|
typedef struct input_event t_input_event;
|
||||||
|
|
||||||
#ifdef KEYBOARD_INSTEAD_OF_REMOTE_CONTROL
|
#ifdef KEYBOARD_INSTEAD_OF_REMOTE_CONTROL
|
||||||
@@ -1155,6 +1160,8 @@ printf("[neutrino] CSectionsdClient::EVT_GOT_CN_EPG\n");
|
|||||||
|
|
||||||
if(ret != sizeof(t_input_event))
|
if(ret != sizeof(t_input_event))
|
||||||
continue;
|
continue;
|
||||||
|
if (ev.type == EV_SYN)
|
||||||
|
continue; /* ignore... */
|
||||||
SHTDCNT::getInstance()->resetSleepTimer();
|
SHTDCNT::getInstance()->resetSleepTimer();
|
||||||
uint32_t trkey = translate(ev.code, i);
|
uint32_t trkey = translate(ev.code, i);
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
@@ -137,7 +137,11 @@ class CRCInput
|
|||||||
int fd_pipe_high_priority[2];
|
int fd_pipe_high_priority[2];
|
||||||
int fd_pipe_low_priority[2];
|
int fd_pipe_low_priority[2];
|
||||||
int fd_gamerc;
|
int fd_gamerc;
|
||||||
|
#ifdef HAVE_SPARK_HARDWARE
|
||||||
|
#define NUMBER_OF_EVENT_DEVICES 2
|
||||||
|
#else
|
||||||
#define NUMBER_OF_EVENT_DEVICES 1
|
#define NUMBER_OF_EVENT_DEVICES 1
|
||||||
|
#endif
|
||||||
int fd_rc[NUMBER_OF_EVENT_DEVICES];
|
int fd_rc[NUMBER_OF_EVENT_DEVICES];
|
||||||
int fd_keyb;
|
int fd_keyb;
|
||||||
int fd_event;
|
int fd_event;
|
||||||
|
Reference in New Issue
Block a user