summaryrefslogtreecommitdiff
path: root/include/events.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-07 21:51:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:17:07 +1000
commit4318075140cc287871d3c3b9f777289ea4ffa23a (patch)
treeccc9afeb45afa4aff49d7de21ab24e5448f98856 /include/events.h
parent9212948461c5e053abb61fff73ced4a00f138544 (diff)
dix: store subpixel precision and send it down the wire to the client.
For the valuator data, not yet for root x/y and event x/y. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/events.h')
-rw-r--r--include/events.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/events.h b/include/events.h
index a289662d4..da8f58aaf 100644
--- a/include/events.h
+++ b/include/events.h
@@ -93,6 +93,7 @@ typedef struct
uint8_t mask[(MAX_VALUATORS + 7)/8]; /**< Valuator mask */
uint8_t mode[(MAX_VALUATORS + 7)/8]; /**< Valuator mode (Abs or Rel)*/
uint32_t data[MAX_VALUATORS]; /**< Valuator data */
+ int32_t data_frac[MAX_VALUATORS]; /**< Fractional part for data */
} valuators;
struct {
uint32_t base; /**< XKB base modifiers */
@@ -191,7 +192,9 @@ typedef struct
struct {
uint8_t mask[(MAX_VALUATORS + 7)/8]; /**< Valuator mask */
int32_t data[MAX_VALUATORS]; /**< Valuator data */
+ int32_t data_frac[MAX_VALUATORS]; /**< Fractional part for data */
int32_t data_raw[MAX_VALUATORS]; /**< Valuator data as posted */
+ int32_t data_raw_frac[MAX_VALUATORS];/**< Fractional part for data_raw */
} valuators;
} RawDeviceEvent;