From 3f96ad229f9272347c80f56dfada4de139d6825a Mon Sep 17 00:00:00 2001 From: Geordie Taber <1228557-exit@users.noreply.gitlab.freedesktop.org> Date: Tue, 8 Apr 2025 01:26:03 +0000 Subject: [PATCH] xinput: Add missing XI 2.4 events to XIEventMask The XIEventMask enum was missing the Gesture{Pinch,Swipe}{Begin,Update,End} events introduced in XInput 2.4. These events correspond to opcodes 27-32, inclusive. Because of this, the generated C enum must contain 1 << 32, which falls outside the range of int. This causes the enum to use a fixed underlying type of greater size in order to accommodate the new range of values. In addition, the generated code must be sure to use "1L << 32", and not "1 << 32", because the latter expression is zero. --- src/xinput.xml | 59 ++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/src/xinput.xml b/src/xinput.xml index 24858bb..dd8750f 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -1531,35 +1531,42 @@ authorization from the authors. - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 - 13 - 14 - 15 - 16 - 17 + 13 + 14 + 15 + 16 + 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 + 18 + 19 + 20 + 21 + 22 + 23 + 24 - 25 - 26 + 25 + 26 + + 27 + 28 + 29 + 30 + 31 + 32