OSDN Git Service

Fix regularly reported absbit/keybit copy/paste bug.
authorChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 02:20:07 +0000 (02:20 +0000)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 02:20:07 +0000 (02:20 +0000)
Sorry for the delay, folks, I've been busy switching to my new position within
MontaVista.

Signed-off-by: Chris Larson <clarson@kergoth.com>
plugins/input-raw.c

index 855525e..5c4e0ca 100644 (file)
@@ -107,7 +107,7 @@ static int check_fd(struct tslib_input *i)
                i->current_p = 255;
 
                if ((ioctl(ts->fd, EVIOCGBIT(EV_KEY, KEY_CNT), keybit) < 0) ||
-                       !(absbit[BIT_WORD(BTN_TOUCH)] & BIT_MASK(BTN_TOUCH)) ) {
+                       !(keybit[BIT_WORD(BTN_TOUCH)] & BIT_MASK(BTN_TOUCH)) ) {
                        fprintf(stderr, "selected device uses is not a touchscreen (must support BTN_TOUCH events)\n");
                        return -1;
                }