summaryrefslogtreecommitdiff
path: root/include/eventconvert.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:12:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:28:12 +1000
commit54716fd3dbc251db9d251d1d0435942efaa63259 (patch)
treed065ba481e24c35a5479b7a1a9ea69599e30e8eb /include/eventconvert.h
parent129ac9a9145323e3f126590b491e718f976f80ce (diff)
Convert to using int32_t fixed point values on the wire.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/eventconvert.h')
-rw-r--r--include/eventconvert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/eventconvert.h b/include/eventconvert.h
index f458af729..dc3fd736d 100644
--- a/include/eventconvert.h
+++ b/include/eventconvert.h
@@ -28,6 +28,8 @@
#include "input.h"
#include "events.h"
+#define FP1616(integral, frac) (integral * (1 << 16) + frac * (1 << 16))
+
_X_INTERNAL int EventToCore(InternalEvent *event, xEvent *core);
_X_INTERNAL int EventToXI(InternalEvent *ev, xEvent **xi, int *count);
_X_INTERNAL int EventToXI2(InternalEvent *ev, xEvent **xi);