diff options
-rw-r--r-- | src/XExtInt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index 7980340..26cc6e4 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -1574,7 +1574,9 @@ wireToRawEvent(xXIRawEvent *in, XGenericEventCookie *cookie) for (i = 0; i < bits; i++) { out->valuators.values[i] = values->integral; - out->raw_values[i] = (values + len)->integral; + out->valuators.values[i] += ((double)values->frac / (1 << 16) / (1 << 16)); + out->raw_values[i] = (values + bits)->integral; + out->valuators.values[i] += ((double)(values + bits)->frac / (1 << 16) / (1 << 16)); values++; } |