aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Print a warning if a keycode exceeds the range accepted by the server.Adam Jackson2008-08-07
| | | | | | | Keycodes over 255 are silently ignored in the server. The least we can do is put a warning in the logs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Adding a function to map button events to button numbers.Chris Salch2008-08-06
| | | | | | | 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>
* Actually close the fd on DEVICE_CLOSE (bug#16948)Julien Cristau2008-08-04
| | | | | | Fixes file descriptor leak. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Print the device name when we get a read errorJulien Cristau2008-07-30
|
* xf86-input-evdev: Fix EVIOCGBIT ioctl usage on big endian platforms.Michel Dänzer2008-07-30
| | | | | | | | | | 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>
* Add support for ButtonMapping option.Peter Hutterer2008-07-22
|
* Guard property changes against ABI_XINPUT < 3.Peter Hutterer2008-07-21
|
* Fill up the version infoJulien Cristau2008-07-20
| | | | | Report correct versions instead of "compiled for 0.0.0, module version = 1.0.0"
* Don't enable the device if the grab failed with ENODEV.Peter Hutterer2008-07-14
| | | | | | | 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".
* Add .gitignore file.Peter Hutterer2008-07-10
|
* Add support for device properties, currently MB emulation and timeout.Peter Hutterer2008-07-10
|
* Clean out configure.acPeter Hutterer2008-07-10
| | | | We're not building with or without XInput. Same with xkb.
* Remove static ChangeLog, autogenerate as part of make dist.Peter Hutterer2008-07-03
| | | | Hook taken from xserver's Makefile.am
* Update COPYING with the correct copyright info.Peter Hutterer2008-07-03
| | | | | Fix up licence of emuMB.c, was using Red Hat instead of "The authors", but this code wasn't contributed by RH anyway.
* Remove stale comments.Peter Hutterer2008-07-03
| | | | | Ctrl+Alt+Backspace works, I'm using it daily. CapsLock doesn't repeat, otherwise we wouldn't have Bug 16318.
* Remove EvdevConvert, nobody calls it now anyway.Peter Hutterer2008-07-03
| | | | Conversion is now done in the DIX.
* Mice with a lot of buttons (e.g. Logitech MX1000) generate button events ↵Ander Conselvan de Oliveira2008-06-28
| | | | | | greater than BTN_TASK. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
* Count buttons at probe and print to log.Peter Hutterer2008-06-28
| | | | | | 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.
* Bump to 2.0.99.Peter Hutterer2008-06-22
|
* No need to finalize MB emulation after EvdevProbe anymore.Peter Hutterer2008-06-22
| | | | Follow-up to 76800bfa75807e49398380b902f6c0f547cd4c0e.
* Close file descriptor if EvdevProbe fails.Simon Munton2008-06-22
| | | | Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
* Enable middle button emulation at DEVICE_ON instead of DEVICE_INIT.Keith Packard2008-06-21
| | | | | | | | 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>
* evdev 2.0.0xf86-input-evdev-2.0.0Peter Hutterer2008-06-17
|
* Shut up compiler warning "implicit declaration of function 'xf86Msg'"Peter Hutterer2008-06-17
|
* Finalize MB emulation if EvdevProbe fails.Peter Hutterer2008-06-12
| | | | | This avoids segfaults when HAL is restarted behind our backs. Also, only init MB emulation when the device actually has a button.
* evdev 1.99.4xf86-input-evdev-1.99.4Peter Hutterer2008-06-11
| | | | 1.99.3 had a nasty bug, so here's a quick update.
* If Emulate3Buttons is specified in the config, don't auto-deactivate it.Peter Hutterer2008-06-11
| | | | | | 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.
* Remove wakeup handlers when device is closed.Peter Hutterer2008-06-11
| | | | Less SIGABRTs are less exciting, but sometimes boredom is what we want.
* evdev 1.99.3xf86-input-evdev-1.99.3Adam Jackson2008-06-10
|
* Disable middle mouse button emulation when a real middle MB event is detected.Peter Hutterer2008-06-10
| | | | | | 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.
* Enable middle-mouse button emulation.Peter Hutterer2008-06-10
| | | | Ported from xf86-input-mouse, with a few cleanups.
* Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.Peter Hutterer2008-06-10
|
* evdev: Port b4a5a204 "Fix pointer crossing screen bug." to current master branchSven Wegener2008-06-08
| | | | | | | | | 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>
* Check for XINPUT ABI < 3 (corrected version)Peter Hutterer2008-06-08
| | | | Thanks to Sven Wegener for pointing out the incorrect previous version.
* Revert "Check for XINPUT ABI, parameters of InitValuatorClassRec have changed."Peter Hutterer2008-06-08
| | | | | | | 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.
* Check for XINPUT ABI, parameters of InitValuatorClassRec have changed.Peter Hutterer2008-05-26
|
* Fail if the device cannot be grabbed during the probe.Peter Hutterer2008-05-23
| | | | | | | | | 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.
* evdev 1.99.2xf86-input-evdev-1.99.2Adam Jackson2008-05-21
|
* Fix a trivial bug in testing for absolute axes.Dan A. Dickey2008-05-20
| | | | Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
* Shut up two compiler warnings.Peter Hutterer2008-05-19
|
* Remove unused EvdevOpts and EvdevOptions.Peter Hutterer2008-05-19
| | | | | | | 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.
* man: Option "Path" is supported in the code, add it to man page.Peter Hutterer2008-05-18
|
* Don't allow relative and absolute axes on the same device.Peter Hutterer2008-05-02
| | | | | | | | | | | | | 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).
* Add XK_Meta_L and XK_Meta_R to list of modifiersSascha Hlusiak2008-04-01
| | | | Stopps meta/super key from autorepeating
* Keyboard: Don't allow arbitrary keymap settingsDaniel Stone2008-03-28
| | | | Pretty much dead code anyway.
* Map REL_DIAL to REL_HWHEEL.Adam Jackson2008-03-14
| | | | | Some Microsoft mice have this wrong. And it seems like a sensible thing to do anyway.
* Filter out repeat events for mouse buttons.Adam Jackson2008-03-12
| | | | | | | | 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.
* Fix middle/right button munging.Adam Jackson2008-03-11
| | | | | | 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.
* Force xkb_model to be "evdev".Adam Jackson2008-03-10
| | | | | 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.
* Fix cut-and-paste errors in xkb alternate spellings codeDan Nicholson2008-03-09
| | | | Fixes 2b334d6b69d7dde5d553c638e134ebdf974749f3.