summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* evdev 2.1.3xf86-input-evdev-2.1.3evdev-2.1-branchPeter Hutterer2009-02-171-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* man: Fix two minor typos in man page.Peter Hutterer2009-02-171-2/+2
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 0de20a8f1b9f80b33081cea20444a05a745cb95e)
* Log which EVIOCGABS ioctl failed.Peter Hutterer2009-02-171-2/+2
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 95099cb0368d76ee139f1442253f26f68d493df9)
* Remove duplicate MB emu finalization.Peter Hutterer2009-02-171-2/+0
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 32242871f7001e7e995d501a32f350120bad2fd6)
* Add descriptive messages for device-has-changed errsBryce Harrington2009-02-131-14/+28
| | | | | | | | | | As can be seen in e.g. bugs 19819 & 20025, it can be unclear what exactly caused a given "Device has changed - disabled" error. This patch adds some more specific messages to give a better clue on what exactly was seen to have changed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 2a6c1d7a605e11189e4539db84b1c4da5707dbc6)
* EvdevCacheCompare: ignore changes in current device positionJulien Plissonneau Duquene2009-02-131-0/+2
| | | | | | | | | | | | | | Input devices (especially touchscreens) were disabled when switching virtual console back to X because EvdevCacheCompare() thought the device was substituted by another while away from X. Actually only the current position reported by the device changed from what was in the cache. Fixed by ignoring the current position in the comparison. Fixes bug #19819. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 0dbb88c52b057cfdff6116060060841e4fc4abb5)
* fix manpage formattingPeter Breitenlohner2009-02-131-0/+1
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit c9281567024ef1e94f2da42f0d701ed69728c355)
* evdev 2.1.2xf86-input-evdev-2.1.2Peter Hutterer2009-02-021-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Protect against zero-sized property values. #19882Peter Hutterer2009-02-022-4/+12
| | | | | | | X.Org Bug 19882 <http://bugs.freedesktop.org/show_bug.cgi?id=19882> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 07f40a04df28e9ee6318411beb71eedc7cd6e288)
* Add README with pointers to mailing list, bugzilla & git reposAlan Coopersmith2009-02-021-0/+20
| | | | (cherry picked from commit e260993b6af0c463bd593a3192d2ba4ee6912fc9)
* Reshuffle property initialization.Peter Hutterer2009-01-221-26/+25
| | | | | | | | | | | | | | We don't need axis calibration, etc. on keyboards, so let's do it conditionally on actually having axes. Reported by Simon Thum. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 1906e4d5c112c25c9d7a736d4924d1005267aba7) Conflicts: src/evdev.c
* Don't print xkb options twice to the log file.Peter Hutterer2009-01-221-1/+0
| | | | | | | xf86SetStrOption already prints with X_CONFIG anyway, no need to do it again. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 263bf04a9d350dddd796f3a21c7b1749647be91c)
* evdev 2.1.1xf86-input-evdev-2.1.1Peter Hutterer2009-01-131-1/+1
|
* Disable middle mouse button emulation when a middle mouse button event is ↵Michael Chapman2009-01-131-0/+5
| | | | | | | registered Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 0592d97fbb5a1241ee79397ce9203346d050a9f9)
* Fix FOO_MAX off-by-oneMatt Helsley2009-01-132-18/+34
| | | | | | | | | | | | | | | | | | | | | | In linux/input.h each section's (e.g. ABS) FOO_MAX is the maximum FOO value. Recent kernels define FOO_CNT as the maximum number of FOO there will ever be. Hence using FOO_MAX to size the bit vectors representing the capabilities of an evdev device is off by one. Define FOO_CNT values for use with Linux kernels which lack them. Use FOO_CNT whenever we need to know the number of bits needed -- usually to calculate the number of longs needed. When iterating over the values FOO_MAX still seems appropriate however the loop test should include FOO_MAX rather than skip it. Signed-off-by: Matt Helsley <matt.helsley@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 4dfd86b2201b2b19761a1abb3c580cecf0060224) Conflicts: src/evdev.c
* rename NBITS to NLONGS to reflect its actual meaningMatt Helsley2009-01-132-14/+16
| | | | | | | | | | | | | NBITS really convers the number of bits passed as its argument into a number of longs. This is somewhat atypical of many function-like-macro names. Rename it to NLONGS. Signed-off-by: Matt Helsley <matt.helsley@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry-picked from commit d3fd42d8644310abcae23bbf534f8c445296bcb7) Not really required, but it makes cherry-picking 4dfd86b2201b2b19761a1abb3c580cecf0060224 easier.
* Remove xorgconfig & xorgcfg from See Also list in man pageAlan Coopersmith2009-01-131-1/+1
| | | | (cherry picked from commit 0f0a149067abdd1ed89717de43febe89b2a3490b)
* Fix XkbModel parsing errorYan Li2009-01-131-1/+1
| | | | | | Signed-off-by: Yan Li <yan.i.li@intel.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit d170cba0cdd8f7a2e500e094f5b21fc33aefb52a)
* Finalize MB emu (and wakeup handlers) before closing the fd.Peter Hutterer2009-01-131-0/+2
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit 2bf6e29b40f0da2bc417964fd2bd819306e5d3ed)
* evdev 2.1xf86-input-evdev-2.1.0Peter Hutterer2008-11-181-1/+1
|
* Store device file's minor/major to avoid duplicate devices.Peter Hutterer2008-11-182-0/+116
| | | | | | | | | Devices added that use the same min/maj as an already added device are ignored by the driver. This way users can have an xorg.conf entry on /dev/input/by-id/blahblah and not get the same device added by HAL. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit 63af314368cec47b6b8266db331f2c820e7a071f)
* Fix error messageFernando Carrijo2008-11-111-1/+1
| | | | (cherry picked from commit 4c5c9c111d406e5590429377262b86e91868ef76)
* evdev 2.1 RC 3xf86-input-evdev-2.0.99.3Peter Hutterer2008-11-031-1/+1
| | | | That's it, no more new features. Now it's down to bugfixing only.
* Add support for axes swapping.Peter Hutterer2008-11-034-3/+39
| | | | | | | | | | New option: SwapAxes (boolean) New property: EVDEV_PROP_SWAP_AXES. Actual swapping code written by Donnie Berkholz. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit 4826969f23a0b298da2750c2e23a92b9d91819dd)
* Add support for run-time calibration.Peter Hutterer2008-11-034-0/+66
| | | | | | | | | | | Some devices require run-time axis calibration. We can't change the min/max ranges once we've initialised the valuator structs though, so in-driver run-time calibration is required. If the property is set, the driver scales from the calibrated range to the values reported to the X server (which then may scale to screen coordinates). If the property is not set (i.e. zero items) no scaling is performed. (cherry picked from commit 33eb36f26663c09c873acede1b35e91ef4c64479)
* Treat BTN_[0-2] as LMR buttons if necessary.Peter Hutterer2008-11-032-5/+24
| | | | | | | | | | | | | | Treat BTN_[0-2] as LMR buttons on devices that do not advertise BTN_LEFT, BTN_MIDDLE, BTN_RIGHT (e.g. 3Dconnexion SpaceNavigator). Otherwise, treat BTN_[0+n] as button 5+n. Note: This causes duplicate mappings for BTN_0 + n and BTN_SIDE + n. This also fixes a bug where we could end up with negative button numbers after trying to map BTN_0. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit 64554e4799a697d37dfd8be480f8eee636b9bea1)
* Remove obsolete FIXMEPeter Hutterer2008-11-031-3/+0
| | | | | | | xkeyboard-config's maps are perfectly able to cope with evdev now. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit b77f9398570fb8eae1fcf50bc3c10c9c390c6bac)
* Flush input after re-opening the fd.Peter Hutterer2008-11-031-0/+1
| | | | | | | Suggested by Julien Cristau. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit a43ab4999b9cad10f77aa6c703d3c61b754f1fd4)
* emuMB: add EvdevMBEmuOn and call from EvdevOn to register wakeup handlers.Peter Hutterer2008-11-033-0/+7
| | | | | | | | This got broken in b0737bdbd1f6e601eb4984b6f4cb49279190984c, when the EmuMBPreInit call was removed from EvdevOn. As a result, VT switching away and back wouldn't restore the wakeup handlers and mouse button presses disappeared. (cherry picked from commit af096e8c5d8b425f725a37bf4a98e205e70716e9)
* Fix axis inversion for absolute coordinates.Peter Hutterer2008-11-031-2/+2
| | | | | | If min_x/y was not equal to 0, the inverted calculated range was off and leads to inaccessible or out-of-range areas. (cherry picked from commit 12498042fcc08e34aef0117ce84192f59542fd56)
* emulate MB: fix confusing log message.Peter Hutterer2008-11-031-2/+2
| | | | | | | | If we're forcing MB emulation behaviour as per config, then at least state whether we're forcing it off or on. Found by Michel Dänzer. (cherry picked from commit 0f8fcfccb3251ee3df80d90ae5d7df638722d24e)
* evdev 2.1 RC 2xf86-input-evdev-2.0.99.2Peter Hutterer2008-10-231-1/+1
|
* Silence compiler warning by memsetting the struct properly.Peter Hutterer2008-10-231-1/+3
| | | | (cherry picked from commit 0ab4c09e504ba3822c5e030732b770140165e725)
* MB emulation timeout is stored as Time, make the property 32-bit too.Peter Hutterer2008-10-232-4/+4
| | | | (cherry picked from commit d348eb8ce78640363c159e1a4fdbfa9b596fa5bb)
* Init ioctl bitmasks to 0, shuts up valgrind too.Peter Hutterer2008-10-231-4/+4
| | | | (cherry picked from commit 2c1698fa615a083de7dd647622a302d5de77dc0c)
* Add touchscreen support.Søren Hauberg2008-10-231-18/+37
| | | | | | | | Touchscreens are devices that do not have buttons and only advertise BTN_TOUCH. Add a new flag to note the device type. If BTN_TOUCH is detected, change it to BTN_LEFT and process it normally. (cherry picked from commit 8c39302594445ba774ea3fec66417492cc5643e0)
* Fix TestBit() on 64bitJulien Cristau2008-10-231-1/+1
| | | | | | Reported by Albert Damen <albrt@gmx.net> X.Org Bug#18150 <http://bugs.freedesktop.org/show_bug.cgi?id=18150> (cherry picked from commit f57e8face94c9e6986b35ca2ec231e284b9f58cf)
* Add option "GrabDevice", don't grab the device by default.Peter Hutterer2008-10-233-7/+22
| | | | | | | | | We now have the matching code in the server to set the console to RAW mode and don't need to grab the devices anymore. This is an updated version of e8534d47c8524ac081c2e3e6ebaabe4c6b274a18, which was reverted in 6dc41991557fa55a9e2f5aaf0fe40c70a08d41fd. (cherry picked from commit 4912e2aa7f867a86d383010023b8426c881fb3b0)
* Don't post keycodes > 255.Peter Hutterer2008-10-231-0/+4
| | | | | | | | If we only have keys > 255 we don't set up a key class rec, so don't post them. It makes the server unhappy. Signed-off-by: Julien Cristau <jcristau@debian.org> (cherry picked from commit 7243116f55609a2a5f73bb88cf6ad6386c9bbc0b)
* evdev 2.1 RC 1.xf86-input-evdev-2.0.99.1Peter Hutterer2008-10-141-1/+1
|
* Fix "Device reopened after N attempts" message.Peter Hutterer2008-10-141-3/+2
| | | | (cherry picked from commit 0089d931ac5fb290c82908da652b28c8b515d449)
* Don't init draglock, etc. if we don't have the required capabilities.Peter Hutterer2008-10-141-12/+19
| | | | (cherry picked from commit 0f5a5ac09ebc89e984b72d395475bb9f412e240c)
* 8-bit properties should use 8-bit storage types...Peter Hutterer2008-10-141-1/+1
| | | | (cherry picked from commit 36d68b006d6bb3d41c93888acead73043ca304a1)
* Don't include the client-side header anymore. xkbstr.h is server SDK.Peter Hutterer2008-10-141-3/+2
| | | | (cherry picked from commit bb1f42168761b928478a9cb066457b525c41ddd9)
* Tidy up evdev.hPeter Hutterer2008-10-144-143/+137
| | | | | | This includes shuffling some functions around so we don't need the prototypes in evdev.h. (cherry picked from commit 0405f7b17fb0ce5cadcc6c5aa6eeb61bdacdf9cd)
* Rename DragLockInit to DragLockPreInit, remove superfluous "return".Peter Hutterer2008-10-143-5/+3
| | | | (cherry picked from commit 088e0a175a4913bf827c1f7e19de09fdf987d347)
* Register property handler from within the modules, not the main evdev file.Peter Hutterer2008-10-144-3/+6
| | | | (cherry picked from commit cefedeb205291001e7e47b7516de261dbccce059)
* Clean up program flow - don't call PreInit for "modules" on DEVICE_INIT.Peter Hutterer2008-10-143-35/+4
| | | | | | | 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. (cherry picked from commit b0737bdbd1f6e601eb4984b6f4cb49279190984c)
* Janitor: clean up xf86Msg use, might as well use X_CONFIG directly.Peter Hutterer2008-10-141-2/+1
| | | | (cherry picked from commit 5f2c8a2dcdf98b39997ee5e7c9a9ace3b640bfa3)
* Add property support for ReopenAttempts option.Peter Hutterer2008-10-142-0/+24
| | | | (cherry picked from commit ff783fce65a63707555098759692b22147646263)