summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-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-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-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-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-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
2008-03-07Support the new DIX motion history APIAdam Jackson
Spiritually cherry-picked from 036b457c1b3f7d2d174da890cb8598d907181f8e
2008-03-07remove XFree86LOADER usageDaniel Stone
Build evdevModuleData, et al, unconditionally.
2008-03-07Unlibcwrap.Adam Jackson
2005-11-21Add .cvsignores for drivers.Eric Anholt
2005-09-23Bug #3913: Suppress kernel-generated repeat events for chording keys.XORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901Adam Jackson
2005-07-28Yet more 2.4 build fixes, this time for BTN_TASK.XORG-6_8_99_900Adam Jackson
2005-07-25Handle BTN_TASK too (#3859).Kristian Høgsberg
2005-07-12Build skeletons for input drivers. Should basically work.Adam Jackson
2005-07-11Prep input drivers for modularizing by adding guarded #include "config.h"XORG-6_8_99_16XORG-6_8_99_15Adam Jackson
2005-07-03Add some build compatibility for 2.6 linux systems with 2.4 kernel headersXORG-6_8_99_14Adam Jackson
installed. Allow the use of evdev for mice on 2.4 kernels.
2005-06-25Bug #3626: _X_EXPORT tags for video and input drivers.XORG-6_8_99_13Adam Jackson
2005-05-11Bug #968: Grab the event device used by the evdev driver to avoid weirdXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Adam Jackson
issues when input goes to multiple places. Restrict building the evdev driver to 2.6 kernels since EVIOCGRAB didn't exist in 2.4.
2005-01-18Handle horizontal wheel events and move mapping of extra buttons up so theysco_port_update-baseXORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1Kristian Høgsberg
don't overlap the wheel buttons. Patch from Alan Swanson (#968).
2005-01-14Build fixes for static server.Adam Jackson
2005-01-12Add new evdev input driver. This driver uses the linux input layer directlyKristian Høgsberg
and can handle both mice and keyboards. Convert this to UTF-8 again. The ChangeLog should be kept in UTF-8.