From 3c1ebd1cfe71029ebc6a732a6b55308861e549e0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 14 Aug 2013 19:30:24 +1000 Subject: specs: note that axis values are non-sparse arrays Signed-off-by: Peter Hutterer --- specs/XI2proto.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/specs/XI2proto.txt b/specs/XI2proto.txt index 79988fc..2f81bef 100644 --- a/specs/XI2proto.txt +++ b/specs/XI2proto.txt @@ -2290,7 +2290,9 @@ XI 2.2: The event type may also be TouchBegin, TouchUpdate, or TouchEnd. valuators Bitmask of valuators provided in axisvalues. axisvalues - Valuator data in device-native resolution. + Valuator data in device-native resolution. This is a non-sparse + array, value N represents the axis corresponding to the Nth bit set + in valuators. flags Miscellaneous information about this event; the union of the common flag set and either the key or pointer flag set, @@ -2401,9 +2403,13 @@ when the device is grabbed by another client. valuators Bitmask of valuators provided in axisvalues and axisvalues_raw. axisvalues - Valuator data in device-native resolution. + Valuator data in device-native resolution. This is a non-sparse + array, value N represents the axis corresponding to the Nth bit set + in valuators. axisvalues_raw - Untransformed valuator data in device-native resolution. + Untransformed valuator data in device-native resolution. This is a + non-sparse array, value N represents the axis corresponding to the + Nth bit set in valuators. ยน since XI 2.2 -- cgit v1.2.1