summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 13b1e10..4bb55f5 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -411,9 +411,10 @@ EvdevQueueTouchEvent(InputInfoPtr pInfo, unsigned int touch, ValuatorMask *mask,
* Interface for MB emulation since these need to post immediately.
*/
void
-EvdevPostButtonEvent(InputInfoPtr pInfo, int button, int value)
+EvdevPostButtonEvent(InputInfoPtr pInfo, int button, enum ButtonAction act)
{
- xf86PostButtonEvent(pInfo->dev, Relative, button, value, 0, 0);
+ xf86PostButtonEvent(pInfo->dev, Relative, button,
+ (act == BUTTON_PRESS) ? 1 : 0, 0, 0);
}
void