diff --git a/Makefile b/Makefile index eb167b4..1f7ed02 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ # rpi - uses xwindows to provide event handling # rpi_noX - get keyboard events from raw input, xwindows not needed -PLATFORM=xorg +#PLATFORM=xorg #PLATFORM=rpi -#PLATFORM=rpi_noX +PLATFORM=rpi_noX #### diff --git a/src/input.c b/src/input.c index aff7367..c6bcf4b 100644 --- a/src/input.c +++ b/src/input.c @@ -246,7 +246,7 @@ bool *getKeys() int n; n = scandir ("/dev/input/by-path/", &eps, __dfilter, __dsort); - if (n >= 0) + if (n > 0) { // only check 1st usb keyboard.... char fn[256];