diff --git a/src/create_rcsim_h.sh b/src/create_rcsim_h.sh index c7973e354..177b79dd5 100755 --- a/src/create_rcsim_h.sh +++ b/src/create_rcsim_h.sh @@ -44,6 +44,12 @@ sed -n '/^[[:space:]]*RC_0/,/^[[:space:]]*RC_analog_off/s/^[[:space:]]*/ /p' dri cat << EOF }; +enum { // not defined in input.h but used like that, at least in 2.4.22 + KEY_RELEASED = 0, + KEY_PRESSED, + KEY_AUTOREPEAT +}; + struct key{ char *name; unsigned long code; diff --git a/src/rcsim.c b/src/rcsim.c index 57aa215f1..c274f6c4b 100644 --- a/src/rcsim.c +++ b/src/rcsim.c @@ -68,12 +68,6 @@ enum initiators }; #endif -enum { // not defined in input.h but used like that, at least in 2.4.22 - KEY_RELEASED = 0, - KEY_PRESSED, - KEY_AUTOREPEAT -}; - #include "rcsim.h" void usage(char *n){