From 7c9e8fd56e1830f7a971187d14877ebbdf35c4b0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 1 Aug 2007 00:19:14 +0300 Subject: [PATCH] Input: Allow enabling and disabling of devices Add DEVICE_ENABLE to KDrive and XFree86 to allow us to enable and disable devices on the fly. --- hw/kdrive/src/kinput.c | 1 + hw/xfree86/common/xf86Xinput.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index e3c3abc7c..cfd162f57 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -2294,6 +2294,7 @@ ChangeDeviceControl(register ClientPtr client, DeviceIntPtr pDev, return Success; case DEVICE_CORE: + case DEVICE_ENABLE: return Success; default: diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index b9f7aeda6..f8feeef64 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -297,6 +297,7 @@ ChangeDeviceControl (ClientPtr client, DeviceIntPtr dev, xDeviceCtl *control) case DEVICE_RESOLUTION: case DEVICE_ABS_CALIB: case DEVICE_ABS_AREA: + case DEVICE_ENABLE: return Success; default: return BadMatch;