summaryrefslogtreecommitdiff
path: root/src/emuWheel.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-10-14 16:09:20 +1030
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-14 16:09:20 +1030
commitb0737bdbd1f6e601eb4984b6f4cb49279190984c (patch)
treef7a3987aacd7214ecea3c2f558d119e446c9b7ac /src/emuWheel.c
parent5f2c8a2dcdf98b39997ee5e7c9a9ace3b640bfa3 (diff)
Clean up program flow - don't call PreInit for "modules" on DEVICE_INIT.
Call the PreInit functions for MB Emulation, wheel emu, and draglock during PreInit, not on DEVICE_INIT. This way, we only parse the options once and don't overwrite with defaults when coming back from a VT switch.
Diffstat (limited to 'src/emuWheel.c')
-rw-r--r--src/emuWheel.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index 246ab47..e73ddf3 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -308,25 +308,6 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo)
"EmulateWheelInertia: %d, "
"EmulateWheelTimeout: %d\n",
pInfo->name, pEvdev->emulateWheel.button, inertia, timeout);
-
-#ifdef HAVE_PROPERTIES
- XIChangeDeviceProperty(pInfo->dev, prop_wheel_emu, XA_INTEGER, 8,
- PropModeReplace, 1, &pEvdev->emulateWheel.enabled, TRUE);
- XIChangeDeviceProperty(pInfo->dev, prop_wheel_button, XA_INTEGER, 8,
- PropModeReplace, 1, &pEvdev->emulateWheel.button, TRUE);
- XIChangeDeviceProperty(pInfo->dev, prop_wheel_inertia, XA_INTEGER, 8,
- PropModeReplace, 1, &pEvdev->emulateWheel.inertia, TRUE);
- XIChangeDeviceProperty(pInfo->dev, prop_wheel_timeout, XA_INTEGER, 16,
- PropModeReplace, 1, &pEvdev->emulateWheel.timeout, TRUE);
-
- val[0] = pEvdev->emulateWheel.X.up_button;
- val[1] = pEvdev->emulateWheel.X.down_button;
- val[2] = pEvdev->emulateWheel.Y.up_button;
- val[3] = pEvdev->emulateWheel.Y.down_button;
- XIChangeDeviceProperty(pInfo->dev, prop_wheel_axismap, XA_INTEGER, 8,
- PropModeReplace, 4, val, TRUE);
-
-#endif
}
#ifdef HAVE_PROPERTIES