mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 20:50:07 +01:00
Increase MAX_SLOTS to 60
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>
This commit is contained in:
parent
d596bd7a32
commit
f3f31b47fc
3 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
#define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
|
#define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
|
||||||
#define ARRAY_LENGTH(a) (sizeof(a) / (sizeof((a)[0])))
|
#define ARRAY_LENGTH(a) (sizeof(a) / (sizeof((a)[0])))
|
||||||
#define MAX_NAME 256
|
#define MAX_NAME 256
|
||||||
#define MAX_SLOTS 32
|
#define MAX_SLOTS 60
|
||||||
#define ABS_MT_MIN ABS_MT_SLOT
|
#define ABS_MT_MIN ABS_MT_SLOT
|
||||||
#define ABS_MT_MAX ABS_MT_TOOL_Y
|
#define ABS_MT_MAX ABS_MT_TOOL_Y
|
||||||
#define ABS_MT_CNT (ABS_MT_MAX - ABS_MT_MIN + 1)
|
#define ABS_MT_CNT (ABS_MT_MAX - ABS_MT_MIN + 1)
|
||||||
|
|
|
||||||
|
|
@ -695,7 +695,7 @@ enum libevdev_read_status {
|
||||||
* have been synced.
|
* have been synced.
|
||||||
* @note The implementation of libevdev limits the maximum number of slots
|
* @note The implementation of libevdev limits the maximum number of slots
|
||||||
* that can be synched. If your device exceeds the 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.
|
* 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
|
* If a device needs to be synced by the caller but the caller does not call
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include "test-common.h"
|
#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)
|
START_TEST(test_next_event)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue