[PATCH 5/9] dmx: clarify a valuator mode condition.
Peter Hutterer
peter.hutterer at who-t.net
Thu Oct 21 23:29:32 PDT 2010
Relative is defined as 0, so change the condition to be more obvious.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
hw/dmx/input/dmxevents.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c
index d22cf06..9925e16 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
--
1.7.2.3
More information about the xorg-devel
mailing list