mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
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>
This commit is contained in:
parent
09dbfcb0ad
commit
f9c6903d4a
3 changed files with 197 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue