From b0f7e24d210cb6d0a1c47cae39b54e56a5e996d8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jun 2009 13:14:47 +1000 Subject: Include valuator value in XIValuatorClasses Signed-off-by: Peter Hutterer --- XI2proto.h | 1 + XI2proto.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/XI2proto.h b/XI2proto.h index 1bb5a50..eada483 100644 --- a/XI2proto.h +++ b/XI2proto.h @@ -205,6 +205,7 @@ typedef struct { Atom name; /**< Valuator name */ FP3232 min; /**< Min value */ FP3232 max; /**< Max value */ + FP3232 value; /**< Last published value */ uint32_t resolution; /**< Resolutions in units/m */ uint8_t mode; /**< ModeRelative or ModeAbsolute */ uint8_t pad1; diff --git a/XI2proto.txt b/XI2proto.txt index d5fac4e..34f817e 100644 --- a/XI2proto.txt +++ b/XI2proto.txt @@ -242,6 +242,7 @@ XI2. Clients should ignore this data. axisname: ATOM min: FP3232 max: FP3232 + value: FP3232 resolution: CARD32 } XIQueryDevices details information about the requested input devices. @@ -341,6 +342,8 @@ XI2. Clients should ignore this data. Resolution in counts/meter. mode Relative or Absolute. + value + Last published axis value (if mode is absolute). An axis in Relative mode may specify 'min' and 'max' as a hint to the client. If no 'min' and 'max' information is available, both must be 0. -- cgit v1.2.1