Commit Graph

29 Commits

Author SHA1 Message Date
Zephaniah E. Hull
eca922bd95 xf86-input-evdev v1.1.2
Bugzilla #6734 <https://bugs.freedesktop.org/show_bug.cgi=6734> Apply patch
    from Philip Langdale which causes us to make sure that O_NONBLOCK is
    set on the inotify device.
2006-04-30 21:39:08 +00:00
Zephaniah E. Hull
f75aadfd62 xf86-input-evdev v1.1.1 2006-04-15 13:01:36 +00:00
Zephaniah E. Hull
cffc51e04a evdevAbsRec: Remove the scale bool, rename scale_x and scale_y to scale[2].
evdevAxesRec: Make btnMap an int array instead of a Card8 array.
Make abs support and non-core stuff actually work.
Relative emulation for abs mode is still a bit broken, but that's far less
    critical.
How many buttons we've registered is configuration information, not an
    error message.
2006-04-14 07:01:37 +00:00
Zephaniah E. Hull
c968040cde Remove a debugging message.
Actually, well, _work_. Note, abs support still segfaults, I'll debug it
    after I've slept. But I should get it tomorrow.
2006-04-09 00:41:42 +00:00
Zephaniah E. Hull
880879015b Dropped the xorg-xserver 1.0.99.901 requirement. (Things were tweaked to
mostly work for older servers again.)
Close the device properly on read errer.
Minimal inotify support, not ideal yet, but...
Minimal inotify support, not ideal yet, but...
Minimal inotify support, not ideal yet, but...
2006-04-08 21:55:17 +00:00
Zephaniah E. Hull
c97fdb4449 Remove evdev_abs.c and evdev_rel.c. Added evdev_axes.c.
Change the calls to refer to EvdevAxes instead of Abs and Rel. Include
    mipointer.h. (Fixes a compile error.) Remove an unused variable from
    EvdevReadInput.
Removed evdev_abs.c and evdev_rel.c, added evdev_axes.c. Added count to rel
    and abs. Moved btnMap from rel to the new axes. Shuffle some includes,
    and include stdarg.h.
Removed.
New, a mix of rel and abs that should actually work in the rel case.
Rearrange include order. btnMap was moved from being part of rel to being
    part of axes.
Removed.
Rearrange include order.
Rearrange include order.
NOTE: This commit has been compile tested, not run tested.
I have some other changes to make before I can do more heavy testing.
2006-04-08 17:23:06 +00:00
Adam Jackson
ad4d62e1d3 Unlibcwrap. Bump server version requirement. Bump to 1.1.0. 2006-04-07 17:30:27 +00:00
Zephaniah E. Hull
e9a6f6d1a0 Fix the fd pointer leak reported by primer. (Not the same patch.)
Disable the undocumented xkb guts options in the key driver. (Requested by
    Daniel Stone.)
2006-03-31 18:11:52 +00:00
Zephaniah E. Hull
05b56eeb5c Switch from my own globbing function to fnmatch.
Detect keys numbered higher then buttons. Remove the (depreciated since
    long before xkb support was added to evdev) XkbKeymap option.
2006-03-16 13:09:19 +00:00
Zephaniah E. Hull
9972f2b1c7 Don't leave keys in the down state when we get turned off. (VT switching,
getting unplugged, that sort of stuff.)
2006-02-27 13:22:35 +00:00
Zephaniah E. Hull
94cb4aa1f8 Better error reporting if the read fails.
Work properly if we're defining entirely by capability maps.
2006-02-27 10:48:40 +00:00
Zephaniah E. Hull
47482dad76 Compile with -Wall now. Add evdev.h to the sources so that make distcheck
gets it.
Bugzilla #5943 <https://bugs.freedesktop.org/show_bug.cgi=5943> Make sure
    we include errno.h.
Reduce EVDEV_MAXBUTTONS to 96.
Split up evdevStateRec into a struct with pointers to new structs for btn,
    abs, rel, and key.
New structure type for handling the device capability bitmaps.
Add device bits and struct input_id to evdevDeviceRec.
Add matching device bits, struct input_id, and pass number to
    evdevDriverRec.
Prototype for evdevGetBits from evdev_brain.c.
Conversion for the evdevStateRec split.
Remove the errno.h include, it's in evdev.h for now.
Move the bit getting from the drivers to here, into evdevDeviceRec.
Fix a rare case of fd leakage.
Add several new (and somewhat ugly) device matching options: <map>Bits:
    Where map is one of ev, key, rel, abs, msc, led, snd, or ff. In the
    format of '+0 +3 -1-2 ~5-10', requires bits 0 and 3 be set, bits 1 and
    2 to not be set, and at least one bit in the range of 5 to
10 be set. bustype, vendor, product, and version: Simple integer options
    for matching the struct device_id fields, must be 0 (the default) or
    the exact value you wish to match against. pass: Bounded to 0-3,
    devices are matched to the first matching entry found, order for
    multiple matching entries in the same pass is undefined, but it starts
    with pass 0 and goes to pass 3.
Adaptation for the evdevStateRec split and the change in capability bitmap
    handling.
Add evdevGetBits to fill the new evdevBitsRec struct type.
Lots of somewhat ugly code for matching by capability bits.
Split out of evdevRescanDevices to smaller handling functions. The new
    design should be better if I decide to handle arbitrary Device fields
    again.
Adaptation for the evdevStateRec split and the change in capability bitmap
    handling.
Handle all buttons, no button compression at this time, however we reorder
    things so that BTN_MOUSE comes before BTN_MISC, somewhat evily.
Support for the new btn->state[] array of int pointers.
Adaptation for the evdevStateRec split and the change in capability bitmap
    handling.
Adaptation for the evdevStateRec split and the change in capability bitmap
    handling.
I really hope I didn't miss any changes.
2006-02-24 13:44:56 +00:00
Lars Knoll
739a0f51b0 include errno.h to make it compile. 2006-02-24 12:14:32 +00:00
Zephaniah E. Hull
763edd3730 Bugzilla #5950 <https://bugs.freedesktop.org/show_bug.cgi=5950> Possible
(maybe) fix for bug #5950. Though, I'm not convinced and still don't
    see how this bug could be happening, especially if this doesn't do it.
2006-02-20 09:18:56 +00:00
Zephaniah E. Hull
c6dbf89d9d Add bell support. 2006-02-19 19:11:04 +00:00
Zephaniah E. Hull
28ee08ef08 Bugzilla #5914 <https://bugs.freedesktop.org/show_bug.cgi?id=5914> Stupid
little bug, properly handle wheels on 3 button mice.
2006-02-17 01:17:41 +00:00
Zephaniah E. Hull
e7d4e6b11e Bugzilla #5696 <https://bugs.freedesktop.org/show_bug.cgi?id=5696> Slightly
updated version of the patch listed. Basicly a rewrite of the driver,
    with a few pieces of the old. XKB support, proper device matching,
    basic absolute pointer support. Lots more, will require some user
    config changes.
2006-02-14 14:57:37 +00:00
Eric Anholt
753e3320af Add .cvsignores for drivers. 2005-11-21 10:49:03 +00:00
Adam Jackson
ce0cafa115 Bug #3913: Suppress kernel-generated repeat events for chording keys. 2005-09-23 22:32:23 +00:00
Adam Jackson
b446f59cc5 Yet more 2.4 build fixes, this time for BTN_TASK. 2005-07-28 01:48:14 +00:00
Kristian Høgsberg
f745d59b6c Handle BTN_TASK too (#3859). 2005-07-25 16:07:34 +00:00
Adam Jackson
29621860ab Build skeletons for input drivers. Should basically work. 2005-07-12 06:15:08 +00:00
Adam Jackson
74021126a6 Prep input drivers for modularizing by adding guarded #include "config.h" 2005-07-11 02:37:59 +00:00
Adam Jackson
672f8cd661 Add some build compatibility for 2.6 linux systems with 2.4 kernel headers
installed. Allow the use of evdev for mice on 2.4 kernels.
2005-07-03 00:06:01 +00:00
Adam Jackson
0145e216a7 Bug #3626: _X_EXPORT tags for video and input drivers. 2005-06-25 21:17:01 +00:00
Adam Jackson
df1b2f476d Bug #968: Grab the event device used by the evdev driver to avoid weird
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-05-11 00:13:15 +00:00
Kristian Høgsberg
319e1b28a3 Handle horizontal wheel events and move mapping of extra buttons up so they
don't overlap the wheel buttons. Patch from Alan Swanson (#968).
2005-01-18 20:18:09 +00:00
Adam Jackson
4ada85ef11 Build fixes for static server. 2005-01-14 17:14:07 +00:00
Kristian Høgsberg
bdd94f37b3 Add new evdev input driver. This driver uses the linux input layer directly
and can handle both mice and keyboards.
Convert this to UTF-8 again. The ChangeLog should be kept in UTF-8.
2005-01-12 20:15:52 +00:00