Increase MAX_SLOTS to 60
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 27 Feb 2014 04:35:35 +0000 (14:35 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 5 Mar 2014 23:21:02 +0000 (09:21 +1000)
As seen on 3M devices, which seems to be the maximum seen so far. Some Stantum
devices report 255 touches but are only capable of 10, so the are not affected
by our limits.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
libevdev/libevdev-int.h
libevdev/libevdev.h
test/test-libevdev-events.c

index 42141cac2ec5a70cdee527fd20212078f5bca3c5..2bc87508eafdfb1ace2203419e709f4f3c0618ff 100644 (file)
@@ -34,7 +34,7 @@
 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
 #define ARRAY_LENGTH(a) (sizeof(a) / (sizeof((a)[0])))
 #define MAX_NAME 256
-#define MAX_SLOTS 32
+#define MAX_SLOTS 60
 #define ABS_MT_MIN ABS_MT_SLOT
 #define ABS_MT_MAX ABS_MT_TOOL_Y
 #define ABS_MT_CNT (ABS_MT_MAX - ABS_MT_MIN + 1)
index b13e746c5db1f159ccb0cab98ef87a97c99cbf67..eab02ba51648578e4b0119c64f6e1984d6d4949a 100644 (file)
@@ -695,7 +695,7 @@ enum libevdev_read_status {
  * have been synced.
  * @note The implementation of libevdev limits the maximum number of slots
  * that can be synched. If your device exceeds the number of slots
- * (currently 32), slot indices equal and above this maximum are ignored and
+ * (currently 60), slot indices equal and above this maximum are ignored and
  * their value will not update until the next event in that slot.
  *
  * If a device needs to be synced by the caller but the caller does not call
index 899bd2946ada352c9f5e9806d66970b191c3df27..b9945b434f82f77eb980b86e05a095620e46a0e1 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "test-common.h"
 
-#define MAX_SLOTS 32 /* as in libevdev-int.h */
+#define MAX_SLOTS 60 /* as in libevdev-int.h */
 
 START_TEST(test_next_event)
 {