From c00befb0e63b9064fb06be6f6e16627991459a99 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 6 Feb 2015 14:00:07 +0300 Subject: [PATCH] rcsim.c: use event dev on cst, too --- src/rcsim.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rcsim.c b/src/rcsim.c index c274f6c4b..2ae56a39c 100644 --- a/src/rcsim.c +++ b/src/rcsim.c @@ -39,8 +39,10 @@ /* if you want use HAVE_XX_HARDWARE, better include config.h :-) */ #include "config.h" -#ifdef HAVE_DBOX_HARDWARE +#if defined(HAVE_DBOX_HARDWARE) #define EVENTDEV "/dev/input/event0" +#elif defined (HAVE_COOL_HARDWARE) +#define EVENTDEV "/dev/input/input0" #else /* dreambox and tripledragon do not use a "normal" input device, so we cannot (ab-)use the event repeating function of it. use the neutrino socket instead. */ @@ -73,7 +75,7 @@ enum initiators void usage(char *n){ unsigned int keynum = sizeof(keyname)/sizeof(struct key); unsigned int i; -#ifdef HAVE_DBOX_HARDWARE +#if defined (EVENTDEV) printf ("rcsim v1.1\nUsage: %s [