summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-01evdev 2.0.3xf86-input-evdev-2.0.3Peter Hutterer
2008-07-30xf86-input-evdev: Fix EVIOCGBIT ioctl usage on big endian platforms.Michel Dänzer
With this fix, on my PowerBook HAL hotplugging correctly detects my USB mouse, and no longer thinks keyboards have random numbers of mouse buttons. :) The LONG_BITS and NBITS macro definitions are stolen from xf86-input-synaptics. Signed-off-by: Michel Dänzer <michel@tungstengraphics.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> [cherry-picked from master and fixed the trivial conflict -- jcristau]
2008-07-20Fill up the version infoJulien Cristau
Report correct versions instead of "compiled for 0.0.0, module version = 1.0.0" (cherry picked from commit 2b7edaa4ab88e192d7285d39b4834d1e535b94d0)
2008-07-14evdev 2.0.2xf86-input-evdev-2.0.2Peter Hutterer
2008-07-14Don't enable the device if the grab failed with ENODEV.Peter Hutterer
After suspend/resume, sometimes the device doesn't come back up on the same node. Since we do not call PreInit for the device (which would detect this situation), we continue to try to read a nonexisting file, spamming the log file with "Read Error". (cherry picked from commit bf0d81011e19a8bb5bbd80c6b496c8ae257b4f2c)
2008-07-10Add .gitignore file.Peter Hutterer
(cherry picked from commit ef4bb69c1a64e784fef1c758ee439372ba329b0a)
2008-07-10Remove static ChangeLog, autogenerate as part of make dist.Peter Hutterer
Hook taken from xserver's Makefile.am (cherry picked from commit ec23c6b2f550f2679226da907c1d022295d453f1)
2008-07-10Mice with a lot of buttons (e.g. Logitech MX1000) generate button events ↵Ander Conselvan de Oliveira
greater than BTN_TASK. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> (cherry picked from commit 0830676a0ce3618eae9cf4c072998c16e164c687)
2008-06-22evdev 2.0.1xf86-input-evdev-2.0.1Peter Hutterer
2008-06-22No need to finalize MB emulation after EvdevProbe anymore.Peter Hutterer
Follow-up to 76800bfa75807e49398380b902f6c0f547cd4c0e. (cherry picked from commit 5a0ea39b79b27b7c3117661a21e7ab5eba3c9b24)
2008-06-22Close file descriptor if EvdevProbe fails.Simon Munton
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> (cherry picked from commit 373e13ae353d1e0022f8821adc528ebc5411d47d)
2008-06-22Enable middle button emulation at DEVICE_ON instead of DEVICE_INIT.Keith Packard
This ensures that the middle button emulation is re-enabled after VT switch, otherwise the block handler that deals with the timeouts would not get re-registered. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 76800bfa75807e49398380b902f6c0f547cd4c0e)
2008-06-17evdev 2.0.0xf86-input-evdev-2.0.0Peter Hutterer
2008-06-17Shut up compiler warning "implicit declaration of function 'xf86Msg'"Peter Hutterer
2008-06-12Finalize MB emulation if EvdevProbe fails.Peter Hutterer
This avoids segfaults when HAL is restarted behind our backs. Also, only init MB emulation when the device actually has a button.
2008-06-11evdev 1.99.4xf86-input-evdev-1.99.4Peter Hutterer
1.99.3 had a nasty bug, so here's a quick update.
2008-06-11If Emulate3Buttons is specified in the config, don't auto-deactivate it.Peter Hutterer
Default setting is still "on" until middle button is pressed. If the options is however explicitly stated in the config file, it takes the value from the config file, no matter if a middle button is present.
2008-06-11Remove wakeup handlers when device is closed.Peter Hutterer
Less SIGABRTs are less exciting, but sometimes boredom is what we want.
2008-06-10evdev 1.99.3xf86-input-evdev-1.99.3Adam Jackson
2008-06-10Disable middle mouse button emulation when a real middle MB event is detected.Peter Hutterer
Devices may report middle mouse buttons even if they don't have one (PS/2 devices just don't know any better), so we can't be sure until we see the event.
2008-06-10Enable middle-mouse button emulation.Peter Hutterer
Ported from xf86-input-mouse, with a few cleanups.
2008-06-10Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.Peter Hutterer
2008-06-08evdev: Port b4a5a204 "Fix pointer crossing screen bug." to current master branchSven Wegener
The commit b4a5a204 fixed an issue, where we can't move the pointer to other screens and this happens in current master branch again. This commit ports the old commit to the current master branch. Signed-off-by: Sven Wegener <swegener@gentoo.org> Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-06-08Check for XINPUT ABI < 3 (corrected version)Peter Hutterer
Thanks to Sven Wegener for pointing out the incorrect previous version.
2008-06-08Revert "Check for XINPUT ABI, parameters of InitValuatorClassRec have changed."Peter Hutterer
GetMotionEvents() doesn't exist, led to compile errors with servers pre-MPX merge. Thanks to Sven Wegener for pointing this out. This reverts commit 42422d8f69e6806e1adfd93017cac064a75041c7.
2008-05-26Check for XINPUT ABI, parameters of InitValuatorClassRec have changed.Peter Hutterer
2008-05-23Fail if the device cannot be grabbed during the probe.Peter Hutterer
If the grab fails, this is most likely a sign that the device has been grabbed already (probably by a device specified in xorg.conf). So let's not add the device to the server's input device list, since it won't generate events anyway. Exception: keyboards and kernel 2.4 are not affected.
2008-05-21evdev 1.99.2xf86-input-evdev-1.99.2Adam Jackson
2008-05-20Fix a trivial bug in testing for absolute axes.Dan A. Dickey
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-05-19Shut up two compiler warnings.Peter Hutterer
2008-05-19Remove unused EvdevOpts and EvdevOptions.Peter Hutterer
In the mouse driver, these options are only used if XFree86LOADER is undefined. configure.ac in the xserver forces said define to 1 if we're building the xfree86 DDX, so I don't see the point of having them around. Especially since they weren't used in evdev anyway.
2008-05-18man: Option "Path" is supported in the code, add it to man page.Peter Hutterer
2008-05-02Don't allow relative and absolute axes on the same device.Peter Hutterer
This is a bit of a mess. The MS Optical Desktop 2000 registers both relative and absolute axes on the same device (the mouse). The absolute axes have a valid min/max range for x/y and thus overwrite the x/y relative axes in the server (no, this is not a server bug). And I wouldn't be surprised if other devices have similar issues. Since the device only sends relative events after that, the mouse is essentially restricted to the min..max range of 0..255. The server simply doesn't do unrestricted relative axis and restricted absolute axis on the same device (not for the same axis numbers anyway).
2008-04-01Add XK_Meta_L and XK_Meta_R to list of modifiersSascha Hlusiak
Stopps meta/super key from autorepeating
2008-03-28Keyboard: Don't allow arbitrary keymap settingsDaniel Stone
Pretty much dead code anyway.
2008-03-14Map REL_DIAL to REL_HWHEEL.Adam Jackson
Some Microsoft mice have this wrong. And it seems like a sensible thing to do anyway.
2008-03-12Filter out repeat events for mouse buttons.Adam Jackson
Not many mice do this, but some do, Apple Mighty Mouse in particular, and it makes click-and-drag pretty much impossible to use. Arguably we should filter _all_ repeat events from the kernel and handle synthesizing them in the server.
2008-03-11Fix middle/right button munging.Adam Jackson
Don't do this in the button map. That's writeable by clients, which means they have the chance to get it wrong. Just swap right and middle around in event dispatch before you get to the user's map.
2008-03-10Force xkb_model to be "evdev".Adam Jackson
Or at least, refuse to recognise the config option. It's nonsensical to use a model of something other than evdev, and it'll just break if you try.
2008-03-09Fix cut-and-paste errors in xkb alternate spellings codeDan Nicholson
Fixes 2b334d6b69d7dde5d553c638e134ebdf974749f3.
2008-03-09Fix cut-and-paste error in abs-to-rel translation.Adam Jackson
2008-03-09Fix the default XKB rules to be "base" instead of "xfree86".Adam Jackson
2008-03-09Handle the alternate spellings of the xkb options.Adam Jackson
2008-03-08Merge branch 'evdev-2.0-branch'Adam Jackson
This resets to before the ad-hoc input hotplug state, ports that to current server ABI, adds input hotplug integration, and re-adds support for absolute coordinate events and XKB. Several other small fixes were cherry-picked from the new 1.2 branch.
2008-03-08Force maximum keycode to be 255Adam Jackson
Even though we don't have keycodes for anything above 127, make sure our map always covers up to 255. This ensures that the keycode range never changes. Spiritually cherry-picked from a9e87f29ccdadebb0742317bb57d66eaaca4b593 and 6db4a9fb84f828f745202c3fddc58d389fca220b.
2008-03-08Add absolute coordinate event support.Adam Jackson
There are two major classes here, touchscreens and touchpads. Touchpads are logically more like relative devices, in that your initial touch should not warp the cursor. So attempt to detect touchpads (via the existence of BTN_TOUCH) and translate absolute events from those devices to relative motion.
2008-03-08Nuke the keyboard bell code.Adam Jackson
It did nothing, and the core won't invoke it anymore anyway.
2008-03-08Re-add XKB support.Adam Jackson
Almost entirely taken from a patch I did ages ago in bug #3912, with slight cleanups, and with the KcCGST options removed as per evdev 1.x.
2008-03-08Parse Option "Path" as well as Option "Device".Adam Jackson
The hotplug core passes Path not Device. With this change, hotplugging works.
2008-03-07Ignore button events above BTN_TASK for now.Adam Jackson