diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emuThird.c | 4 | ||||
-rw-r--r-- | src/evdev.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/emuThird.c b/src/emuThird.c index bdf133a..a65c24e 100644 --- a/src/emuThird.c +++ b/src/emuThird.c @@ -62,7 +62,7 @@ Evdev3BEmuPostButtonEvent(InputInfoPtr pInfo, int button, int press) { EvdevPtr pEvdev = pInfo->private; struct emulate3B *emu3B = &pEvdev->emulate3B; - int absolute = 0; + int absolute = Relative; /* if we cancel, emit the button down event at our start position, * not at the current position. Only for absolute devices though. For @@ -70,7 +70,7 @@ Evdev3BEmuPostButtonEvent(InputInfoPtr pInfo, int button, int press) * us back more than we moved and confuse the user. */ if (emu3B->flags & EVDEV_ABSOLUTE_EVENTS) - absolute = 1; + absolute = Absolute; xf86PostButtonEventP(pInfo->dev, absolute, button, press, 0, (absolute ? 2 : 0), emu3B->startpos); diff --git a/src/evdev.c b/src/evdev.c index bb30655..519a50e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -332,7 +332,7 @@ EvdevQueueProximityEvent(InputInfoPtr pInfo, int value) void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, int value) { - xf86PostButtonEvent(pInfo->dev, 0, button, value, 0, 0); + xf86PostButtonEvent(pInfo->dev, Relative, button, value, 0, 0); } void @@ -695,7 +695,7 @@ EvdevPostRelativeMotionEvents(InputInfoPtr pInfo, int num_v, int first_v, EvdevPtr pEvdev = pInfo->private; if (pEvdev->rel_queued) { - xf86PostMotionEventM(pInfo->dev, FALSE, pEvdev->vals); + xf86PostMotionEventM(pInfo->dev, Relative, pEvdev->vals); } } @@ -718,7 +718,7 @@ EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int num_v, int first_v, * this scheme still just work. */ if (pEvdev->abs_queued && pEvdev->in_proximity) { - xf86PostMotionEventM(pInfo->dev, TRUE, pEvdev->vals); + xf86PostMotionEventM(pInfo->dev, Absolute, pEvdev->vals); } } @@ -765,12 +765,12 @@ static void EvdevPostQueuedEvents(InputInfoPtr pInfo, int num_v, int first_v, break; if (pEvdev->abs_queued && pEvdev->in_proximity) { - xf86PostButtonEventP(pInfo->dev, 1, pEvdev->queue[i].key, + xf86PostButtonEventP(pInfo->dev, Absolute, pEvdev->queue[i].key, pEvdev->queue[i].val, first_v, num_v, v + first_v); } else - xf86PostButtonEvent(pInfo->dev, 0, pEvdev->queue[i].key, + xf86PostButtonEvent(pInfo->dev, Relative, pEvdev->queue[i].key, pEvdev->queue[i].val, 0, 0); break; case EV_QUEUE_PROXIMITY: |