Convert to using int32_t fixed point values on the wire.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-04-19 22:12:11 +10:00
commit 54716fd3db
6 changed files with 32 additions and 36 deletions

View file

@ -47,6 +47,7 @@
#include "eventconvert.h"
#include "querydev.h"
static int countValuators(DeviceEvent *ev, int *first);
static int getValuatorEvents(DeviceEvent *ev, deviceValuator *xv);
static int eventToKeyButtonPointer(DeviceEvent *ev, xEvent **xi, int *count);
@ -384,8 +385,8 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi)
xde->valuators_len = vallen;
xde->deviceid = ev->deviceid;
xde->sourceid = ev->sourceid;
xde->root_x.integral = ev->root_x;
xde->root_y.integral = ev->root_y;
xde->root_x = FP1616(ev->root_x, 0);
xde->root_y = FP1616(ev->root_y, 0);
xde->mods.base_mods = ev->mods.base;
xde->mods.latched_mods = ev->mods.latched;