Commit Graph

93 Commits

Author SHA1 Message Date
Daniel Stone
a9e87f29cc Key: Force maximum keycode to be 255
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.
2007-03-21 12:19:48 +02:00
Tiago Vignatti
b4a5a20476 Fix pointer crossing screen bug. Possibly the others input drivers must update
this on the same manner.
2007-02-14 19:23:21 -02:00
Philip Langdale
24f9e67a8f Stop caching the screen size for scaling.
Do be able to correctly scale absolute inputs, the actual
screen size must be used as this changes when the screen
resizes.
2007-02-10 22:17:01 -08:00
root
d8d8f114ca For reasons related to handling pathological remapping cases, and
differences between HID and X, pretend a middle button exists
whenever a right button exists.
2007-01-17 19:27:40 -05:00
root
ebb30a554f Fix a bug where we potentially wrote garbage events when LEDs change.
Support setting keyboard repeat rate/period.
2007-01-13 07:33:49 -05:00
root
3d8bb262e4 Handle swapping of right and middle buttons better in some odder cases. 2007-01-11 22:42:19 -05:00
root
987c6b1597 No more call to xf86OSRingBell in any cases,
maybe do some conditional stuff later.
2007-01-11 22:41:23 -05:00
root
8155e49e76 Pad out button_names so we can loop over things more sanely.
Support for ignoring the existance of buttons,
and for not telling X about them.

By default don't tell X about tools and touch as buttons.
TODO: Revisit this choice later.
2007-01-08 08:59:44 -05:00
Daniel Stone
e1fe72e7fe bump to 1.1.5 xf86-input-evdev-1.1.5 2006-12-16 01:42:18 +02:00
Daniel Stone
9f3be57929 Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
2006-12-06 18:50:15 +02:00
Daniel Stone
5a5457e69c bump to 1.1.4 xf86-input-evdev-1.1.4 2006-11-02 03:42:57 +02:00
Daniel Stone
3fc70342aa Merge branch 'input-hotplug' 2006-11-02 03:42:14 +02:00
Daniel Stone
1a8cea3dc4 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-evdev 2006-11-02 03:42:13 +02:00
Daniel Stone
ef01c2ef65 key: use os bell-ringing function
Use the OS bell-ringing function to ding the bell.
2006-11-02 03:41:48 +02:00
Daniel Stone
036b457c1b support new DIX motion history API
Use the DIX motion history if we have ABI version 1 or higher.
2006-10-25 02:22:46 +03:00
Daniel Stone
79eb7dcac8 Merge branch 'input-hotplug' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-evdev into input-hotplug 2006-10-17 11:32:39 +03:00
Daniel Stone
d7f686bfa3 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-evdev into input-hotplug 2006-10-17 11:31:58 +03:00
Daniel Stone
ec09e0d55d brain: call xf86DeleteInput when removing device
Call xf86DeleteInput from evdevRemoveDevice, so it also gets removed from
xf86InputDevs in the DDX.
2006-10-15 19:37:46 +03:00
Adam Jackson
4c72fb7b76 Bump to 1.1.3 xf86-input-evdev-1.1.3 2006-10-13 18:25:10 -04:00
Daniel Stone
77cbbc20b6 key: remove usage of OS keyboard layer for bell
Right now, bell is a no-op.
2006-10-08 16:14:12 +03:00
Drew Parsons
5c5ef3fbd6 m68k support (thanks Geert Uytterhoeven for the inotify codes). 2006-10-06 10:56:24 +10:00
Zephaniah E. Hull
a96b048e56 Make some debugging messages optional.
Correctly handle emulating relative mode from absolute data in the case where
we do not get X and Y data at the same time on touching.
2006-10-02 17:50:55 -04:00
Zephaniah E. Hull
d8ea40dc4a Use XORG_VERSION_CURRENT in the module version struct. 2006-10-02 17:49:20 -04:00
Zephaniah E. Hull
ab65184d47 Fix compilation. 2006-09-10 06:47:15 -04:00
Zephaniah E. Hull
63f7edf786 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-evdev into input-hotplug 2006-07-25 16:00:44 -04:00
Zephaniah E. Hull
771eee9682 Replace the old two buffer approach to handling rel emulation of abs axes,
should help with some of the reported jitter problems.
2006-07-23 22:40:51 -04:00
Daniel Stone
e468150448 fix InitValuatorClassDeviceStruct call
I don't know how the last parameter got there.  Sorry.
2006-07-21 14:38:12 -04:00
Zephaniah E. Hull
fa03de438e Move the axis to button map code back into the rel code.
This might solve some problems, but should at least prevent some odd behavior.
2006-07-19 23:06:23 -04:00
Daniel Stone
7b91f9277a pass maxval correctly to xf86InitValuatorAxisDeviceStruct
Pass a maxval of -1 (i.e., fill this in appropriately), rather than 0 (0).
2006-07-19 19:45:27 -04:00
Daniel Stone
7defeb0aef pass number of axes to InitValuatorClassDeviceStruct
This is now required with the input-hotplug server.
2006-07-19 19:43:08 -04:00
Daniel Stone
1cb568c0a6 prune device list on DEVICE_CLOSE
Remove a device from the device list when we get DEVICE_CLOSE.
2006-07-19 19:41:54 -04:00
Zephaniah E. Hull
dc88668839 Split the New functions so that structs can be allocated and buttons
detected, and then stuff that depends on _other_ areas.
(Specificly, axes and btn have a circular dependency on which one has to
run first, this solves that.)

Add button names, and a way to get a button number from a name.

Add a function for checking to see if a button exists, takes the number from the previous function.

Change the (unused) state array of pointers in the button struct to an array of pointers to functions for callback.

Implemented the 'touch' feature, on by default if BTN_DIGI_TOUCH exists,
won't, in rel mode, process x/y data unless it's down, and is used to
try and make 'pick up stencil, move to other side of digitizer, set back
down' not jump to the other side of the screen in rel mode.
(This doesn't work as well as it could, but I'm fairly sure that it's
due to the quality of the absolute input device I'm using, but feedback
would be really nice.)

FIXME: Update the manpage for this.
2006-07-13 11:59:25 -04:00
Zephaniah E. Hull
090d43acf3 Update the .gitignore files to remove some more noise. 2006-07-11 16:47:15 -04:00
Zephaniah E. Hull
1b9a9599a4 Rename .cvsignore to .gitignore. 2006-07-11 16:44:43 -04:00
Zephaniah E. Hull
f7a9c74fbc Grab the ChangeLog generation rule from libX11. 2006-07-11 16:42:41 -04:00
Zephaniah E. Hull
9cb7c3dbad (Hope this works.)
Remove the ChangeLog file, as the entire contents can be gotten via 'git log'.
2006-07-11 12:48:10 -04:00
Zephaniah E. Hull
eba5ea8d5a Set pInfo->fd to -1 when we close it in EvdevProc. 2006-07-11 03:08:30 -04:00
Daniel Stone
51d21a3694 remove XFree86LOADER usage
Build evdevModuleData, et al, unconditionally.
2006-07-09 18:08:50 +01:00
Adam Jackson
4645247d45 MIPS support. (Joshua Kinard) xf86-video-impact-0_2_0 2006-06-22 21:16:44 +00:00
Adam Jackson
57a7f28441 Fix an obvious bogon to avoid crashing on absolute axis setup. 2006-06-02 19:39:52 +00:00
Zephaniah E. Hull
1b03250797 Hopefully fix the bitops stuff to actually _work_. 2006-05-15 22:47:23 +00:00
Zephaniah E. Hull
e9c60da89a Tweak credits and references.
Change the longs to unsigned longs in the bitfields.
Cleanup our includes.
Stop pulling in asm/types.h and asm/bitops.h.
Conditionally define the stuff that used to come from the above, including
    our own test_bit, set_bit and clear_bit.
Change the longs to unsigned longs in the bitfields.
Change the longs to unsigned longs in the bitfields.
Use the bitop defines in evdev.h properly.
Change the longs to unsigned longs in the bitfields.
Change the longs to unsigned longs in the bitfields.
Use the bitop defines in evdev.h properly.
Change the longs to unsigned longs in the bitfields.
Use the bitop defines in evdev.h properly.
Add HPPA/HPPA64 entries. (Thanks to Fabio M. Di Nitto
    <fabbione@ubuntu.com>)
2006-05-14 11:55:50 +00:00
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.
xf86-input-evdev-1_1_2
2006-04-30 21:39:08 +00:00
Zephaniah E. Hull
f75aadfd62 xf86-input-evdev v1.1.1 xf86-input-evdev-1_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