From e909af88bf17dbadcc00d50c13a5bdb6001367be Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 22 Oct 2010 14:22:44 +1000 Subject: [PATCH] dmx: clarify a valuator mode condition. Relative is defined as 0, so change the condition to be more obvious. Signed-off-by: Peter Hutterer Reviewed-by: Chase Douglas --- hw/dmx/input/dmxevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c index d22cf0661..9925e16c9 100644 --- a/hw/dmx/input/dmxevents.c +++ b/hw/dmx/input/dmxevents.c @@ -301,7 +301,7 @@ static void dmxExtMotion(DMXLocalInputInfoPtr dmxLocal, if (axesCount > DMX_MAX_AXES) axesCount = DMX_MAX_AXES; - if (!pDevice->valuator->mode && axesCount == 2) { + if ((pDevice->valuator->mode == Relative) && axesCount == 2) { /* The dmx console is a relative mode * device that sometimes reports * absolute motion. It only has two