aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-07-03 14:44:52 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-07-03 14:44:52 +0930
commit8c06093191761f9bd2f3c5eb0b57d7b9feca70bc (patch)
tree623a1f6bfa2f803173d2b875f1286d521a363ae0
parentMice with a lot of buttons (e.g. Logitech MX1000) generate button events grea... (diff)
downloadxf86-input-evdev-8c06093191761f9bd2f3c5eb0b57d7b9feca70bc.tar.gz
xf86-input-evdev-8c06093191761f9bd2f3c5eb0b57d7b9feca70bc.tar.bz2
xf86-input-evdev-8c06093191761f9bd2f3c5eb0b57d7b9feca70bc.zip
Remove EvdevConvert, nobody calls it now anyway.
Conversion is now done in the DIX.
-rw-r--r--src/evdev.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/evdev.c b/src/evdev.c
index d0012ef..994a32b 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -864,30 +864,6 @@ EvdevProc(DeviceIntPtr device, int what)
return Success;
}
-static Bool
-EvdevConvert(InputInfoPtr pInfo, int first, int num, int v0, int v1, int v2,
- int v3, int v4, int v5, int *x, int *y)
-{
- EvdevPtr pEvdev = pInfo->private;
- int screenWidth = screenInfo.screens[pEvdev->screen]->width;
- int screenHeight = screenInfo.screens[pEvdev->screen]->height;
-
- if (first != 0 || num != 2)
- return FALSE;
-
- /* on absolute touchpads, don't warp on initial touch */
- if (pEvdev->flags & EVDEV_TOUCHPAD) {
- *x = v0;
- *y = v0;
- return TRUE;
- }
-
- *x = (v0 - pEvdev->min_x) * screenWidth / (pEvdev->max_x - pEvdev->min_x);
- *y = (v1 - pEvdev->min_y) * screenHeight / (pEvdev->max_y - pEvdev->min_y);
-
- return TRUE;
-}
-
static int
EvdevProbe(InputInfoPtr pInfo)
{
@@ -1021,7 +997,7 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
pInfo->control_proc = NULL;
pInfo->close_proc = NULL;
pInfo->switch_mode = NULL;
- pInfo->conversion_proc = EvdevConvert;
+ pInfo->conversion_proc = NULL;
pInfo->reverse_conversion_proc = NULL;
pInfo->dev = NULL;
pInfo->private_flags = 0;