Skip to content

Commit

Permalink
testevdev: Add another laptop touchpad
Browse files Browse the repository at this point in the history
This was reported by Rémi Bernon as an example of older SDL's non-udev
code path going wrong for touchpads when the invoking user happens to
be in the input group, which I believe was fixed by fdd945f.

Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
smcv authored and slouken committed Jun 8, 2023
1 parent 32d015a commit 4c035dc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/testevdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,26 @@ static const GuessTest guess_tests[] =
/* POINTER, BUTTONPAD */
.props = { 0x05 },
},
{
.name = "DELL08AF:00 (Dell XPS laptop touchpad)",
.bus_type = 0x18,
.vendor_id = 0x6cb,
.product_id = 0x76af,
.version = 0x100,
.ev = { 0x0b },
.expected = SDL_UDEV_DEVICE_TOUCHPAD,
/* X, Y, multitouch */
.abs = { 0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe0, 0x02 },
.keys = {
/* 0x00-0xff */ ZEROx8, ZEROx8, ZEROx8, ZEROx8,
/* Left mouse button */
/* 0x100 */ 0x00, 0x00, 0x01, 0x00, ZEROx4,
/* BTN_TOOL_FINGER and some multitouch gestures */
/* 0x140 */ 0x20, 0xe5
},
/* POINTER, BUTTONPAD */
.props = { 0x05 },
},
{
.name = "TPPS/2 Elan TrackPoint (Thinkpad X280)",
.bus_type = 0x0011, /* BUS_I8042 */
Expand Down

0 comments on commit 4c035dc

Please sign in to comment.