Message ID | 20110604224546.7ebb8939.ospite@studenti.unina.it (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Jiri Kosina |
Headers | show |
Index: linux-2.6/drivers/input/input.c =================================================================== --- linux-2.6.orig/drivers/input/input.c +++ linux-2.6/drivers/input/input.c @@ -169,7 +169,7 @@ bool is_mt_event; int *pold; - if (code == ABS_MT_SLOT) { + if (code == ABS_MT_SLOT && dev->mtsize > 0) { /* * "Stage" the event; we'll flush it later, when we * get actual touch data. @@ -210,6 +210,9 @@ input_pass_event(dev, EV_ABS, ABS_MT_SLOT, dev->slot); } + if (code == 0x2f) + printk(KERN_DEBUG "%s: code: %08x handled value: %d\n", __func__, code, *pval); + return INPUT_PASS_TO_HANDLERS; }