aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorÉric Brunet <Eric.Brunet@lps.ens.fr>2014-09-27 22:06:36 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2014-09-29 11:18:16 +1000
commit605047613c534babf723f25597e8cc4be6758db0 (patch)
treed29fe1d46ce614dcc168bbdb27c6d6f350bcd1a6 /src/evdev.h
parentDrop some unused #defines (diff)
downloadxf86-input-evdev-605047613c534babf723f25597e8cc4be6758db0.tar.gz
xf86-input-evdev-605047613c534babf723f25597e8cc4be6758db0.tar.bz2
xf86-input-evdev-605047613c534babf723f25597e8cc4be6758db0.zip
Don't pass superfluous arguments to EvdevPost*Events
The functions EvdevPostProximityEvents, EvdevPostRelativeMotionEvents, EvdevPostAbsoluteMotionEvents and EvdevPostQueuedEvents are only called by EvdevProcessSyncEvent. These functions take as arguments an array of valuators which is set by EvdevProcessSyncEvent to contain ... nothing. This patch changes the prototype of the four functions, their definitions and the way they are called to remove the useless array of valuators. Signed-off-by: Éric Brunet <Eric.Brunet@lps.ens.fr> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 2d6b62d..2a010e6 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -265,10 +265,8 @@ void EvdevQueueTouchEvent(InputInfoPtr pInfo, unsigned int touch,
#endif
void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, enum ButtonAction act);
void EvdevQueueButtonClicks(InputInfoPtr pInfo, int button, int count);
-void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo, int num_v, int first_v,
- int v[MAX_VALUATORS]);
-void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int num_v, int first_v,
- int v[MAX_VALUATORS]);
+void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo);
+void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo);
unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code);
/* Middle Button emulation */