summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-10-22 14:22:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-10-22 16:18:59 +1000
commite909af88bf17dbadcc00d50c13a5bdb6001367be (patch)
treee866cba9fbd22e49e872c6be886b743a667cb689
parentb5ef88c911f697530ddc2c7302fce15ba2ead4b2 (diff)
dmx: clarify a valuator mode condition.
Relative is defined as 0, so change the condition to be more obvious. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--hw/dmx/input/dmxevents.c2
1 files changed, 1 insertions, 1 deletions
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