From cbeb73e2055f6c013c8fe6325851f2631170137d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jun 2009 10:51:52 +1000 Subject: Xi: return current valuator values in XIQueryDevice. Signed-off-by: Peter Hutterer --- Xi/xiquerydevice.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xi/xiquerydevice.c b/Xi/xiquerydevice.c index 2c01863bb..2e480f5b8 100644 --- a/Xi/xiquerydevice.c +++ b/Xi/xiquerydevice.c @@ -324,6 +324,8 @@ ListValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo* info, int axisnumber) info->min.frac = 0; info->max.integral = v->axes[axisnumber].max_value; info->max.frac = 0; + info->value.integral = (int)v->axisVal[axisnumber]; + info->value.frac = (int)(v->axisVal[axisnumber] * (1 << 16) * (1 << 16)); info->resolution = v->axes[axisnumber].resolution; info->number = axisnumber; info->mode = v->mode; /* Server doesn't have per-axis mode yet */ -- cgit v1.2.3