[PATCH 2.6] input: do not suppress 0 value relative events

From: Dmitry Torokhov
Date: Sat Oct 04 2003 - 02:24:35 EST


Input: input susbsystem should not drop 0 value relative events,
otherwise unsuspecting programs will loose transitions from
non-zero to 0 deltas. We should not require userland authors
to consult with kernel implementation details all the time,
but follow the principle of least surprise and report
everything.


input.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/input.c b/drivers/input/input.c
--- a/drivers/input/input.c Sat Oct 4 02:20:18 2003
+++ b/drivers/input/input.c Sat Oct 4 02:20:18 2003
@@ -134,7 +134,7 @@

case EV_REL:

- if (code > REL_MAX || !test_bit(code, dev->relbit) || (value == 0))
+ if (code > REL_MAX || !test_bit(code, dev->relbit))
return;

break;



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/