Peter Hutterer
6f6ac98295
Add checkonly handling to property handlers.
...
If checkonly is TRUE, we can only check if applying the value would succeed.
The value is actually applied if checkonly is FALSE.
2008-10-11 12:24:54 +10:30
Søren Hauberg
3985d42320
Add support for axis inversion.
2008-10-03 14:41:58 +09:30
Peter Hutterer
84a0e39c0d
Use new property API (no ConfigureDP, less args to ChangeDP)
...
Return appropriate status codes from property handlers.
Make properties non-deletable.
2008-09-26 13:23:35 +09:30
Peter Hutterer
9930477cbe
Attempt to re-open devices on read errors.
...
Coming back from resume may leave us with a file descriptor that can be opened
but fails on the first read (ENODEV).
In this case, try to open the device until it becomes available or until the
predefined count expires. To be safe, we cache the information from the device
and compare against it when we re-open. This way we ensure that if the
topology changes under us, we don't open a completely different device. If a
device has changed, we disable it.
Adds option "ReopenAttempts" <int>
2008-09-04 18:33:39 +09:30
Peter Hutterer
4509ec1daf
Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.
2008-09-04 18:22:56 +09:30
Dan Nicholson
e237de0dea
Add timeout support for mouse wheel emulation
...
Support the EmulateWheelTimeout option as the mouse driver does.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com >
2008-08-22 08:41:14 +09:30
Peter Hutterer
92c6611b6f
Add property support for drag lock.
2008-08-18 13:44:02 +09:30
Chris Salch
bd405ddc83
Adding in DragLockButtons functionality.
...
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com >
2008-08-18 12:03:07 +09:30
Peter Hutterer
6dc4199155
Revert "Don't grab devices unless specified through the config options."
...
Not such a good idea, CTRL+C terminates the server and other issues. Reverting
for now until a better solution is found, at least this way the driver is
usable.
See also: http://lists.freedesktop.org/archives/xorg/2008-August/038032.html
This reverts commit e8534d47c8 .
2008-08-15 11:54:53 +09:30
Peter Hutterer
e8534d47c8
Don't grab devices unless specified through the config options.
...
Grabbing event devices stops in-kernel event forwarding, most notably rfkill
and the "Macintosh mouse button emulation" device. Let's not do that.
Option "GrabDevice" forces grabbing the device.
2008-08-14 13:44:11 +09:30
Peter Hutterer
134829d911
Simplify the property handler registration.
...
Instead of having separate handlers for each property, just handle all of them
in one handler for emuMB, and one handler for emuWheel.
2008-08-08 16:04:23 +09:30
Peter Hutterer
4e121b297e
Add EVDEV_MAXBUTTONS instead of checking against 32.
...
Numbers are so lame, defines are all the rage now I've heard.
2008-08-08 15:51:09 +09:30
Peter Hutterer
9793de8137
Expose wheel emulation through device properties.
...
Don't enable wheel emulation with 0 inertia - bad things happen.
2008-08-08 15:50:55 +09:30
Chris Salch
a9d72b40fb
Adding mouse wheel emulation code.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2008-08-07 16:04:31 +09:30
Chris Salch
40e1474d84
Adding a function to map button events to button numbers.
...
Remove code duplication, let the mapping function hand us the actual button
event to be passed up to the server.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2008-08-06 16:36:51 +09:30
Peter Hutterer
53e7525744
Add support for ButtonMapping option.
2008-07-22 11:49:33 +09:30
Peter Hutterer
d1818ef206
Add support for device properties, currently MB emulation and timeout.
2008-07-10 17:08:49 +09:30
Peter Hutterer
1cf7b8f7ee
Count buttons at probe and print to log.
...
We don't really do anything with the number other than print it since I'm sure
that half the mice don't report the correct number anyway (especially with the
wheel button mapping). But having a bit more debug info is good.
2008-06-28 17:53:24 +09:30
Peter Hutterer
9591dc1f6c
Remove wakeup handlers when device is closed.
...
Less SIGABRTs are less exciting, but sometimes boredom is what we want.
2008-06-11 11:23:38 +09:30
Peter Hutterer
e8887435ac
Enable middle-mouse button emulation.
...
Ported from xf86-input-mouse, with a few cleanups.
2008-06-10 22:46:20 +09:30