summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-05 15:02:52 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-15 21:15:47 -0700
commitf9c6903d4a90b59c328f4fa05d2be9e0ce1c5189 (patch)
tree88c0cbb0337a8eec61e6c2e8836b302922c9ae4d /include
parent09dbfcb0ad7b6c8bac94502f2801e82f2a2ef435 (diff)
dix: add utility functions for double to/fro FP1616/FP3232 conversion
Co-authored-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'include')
-rw-r--r--include/inpututils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inpututils.h b/include/inpututils.h
index 47e242d87..2832ed5b1 100644
--- a/include/inpututils.h
+++ b/include/inpututils.h
@@ -30,6 +30,7 @@
#define INPUTUTILS_H
#include "input.h"
+#include <X11/extensions/XI2proto.h>
struct _ValuatorMask {
int8_t last_bit; /* highest bit set in mask */
@@ -40,4 +41,9 @@ struct _ValuatorMask {
extern void verify_internal_event(const InternalEvent *ev);
extern void init_device_event(DeviceEvent *event, DeviceIntPtr dev, Time ms);
+FP3232 double_to_fp3232(double in);
+FP1616 double_to_fp1616(double in);
+double fp1616_to_double(FP1616 in);
+double fp3232_to_double(FP3232 in);
+
#endif