Commit Graph

124 Commits

Author SHA1 Message Date
Peter Samuelson
fa15e90993 Fix one additional typo in evdev.man (axis named BRAKE, not BREAK). xf86-input-evdev-1.2.0 2007-10-11 07:27:30 +02:00
Peter Samuelson
12a27693b9 evdev.man minor fixes
* Use \- (ASCII dash) instead of - (hyphen), where appropriate
* Use a roff escape instead of a UTF-8 character.
* Consistent use of quote characters.
* Consistent use of typographic conventions:
  italic "n" in place of "<N>" or "integer" or "number",
  bold for option names, bit maps, etc.

Debian bug #446118
2007-10-11 00:09:40 +02:00
James Cloos
1c40c7db18 Add *~ to .gitignore to skip patch/emacs droppings 2007-09-03 05:52:08 -04:00
Daniel Stone
e2be2ffa47 Options: Accept differently-named options
Take some differently-named options for device and the XKB options.  These
should really be better-handled, but eh.
2007-08-07 15:44:33 +03:00
Brice Goglin
e86aab93c5 Multiple typos in evdev.man
Reported by "A. Costa" <agcosta@gis.net> in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432063
2007-07-26 18:31:58 +02:00
Tiago Vignatti
c69f4bd570 Clean up a little bit the code. 2007-06-15 01:35:29 -03:00
Tiago Vignatti
64677ecc76 Remove inotify things. 2007-06-15 01:33:49 -03:00
Zephaniah E. Hull
08a09682f5 Update version using PACKAGE_VERSION_*. 2007-06-13 11:05:07 -04:00
Zephaniah E. Hull
9c9a47210a Move the mode option handling to the Init stage.
(Sorta ugly placement wise, but the other segfaults.)
2007-06-12 11:59:16 -04:00
Zephaniah E. Hull
2d2c4804f9 evdev.c:
Set and use the X mode control, letting XInput see it properly.

    Kill some cruft.

evdev.h:

    Set and use the X mode control, letting XInput see it properly.

evdev_axes.c:

    Set and use the X mode control, letting XInput see it properly.

evdev_key.c:

    Remove some cruft, the bell func can be NULL now, so do so.

    Don't bother looking for keys above 0xF7 until we can actually do
    something with them.
2007-06-11 09:08:24 -04:00
Zephaniah E. Hull
6b97bf7a4e Handle default remapping around existing button targets better. 2007-06-06 05:00:29 -04:00
Zephaniah E. Hull
5c6b3dd86f Move MapButtons_t closer to where it's used. 2007-06-06 04:42:51 -04:00
Zephaniah E. Hull
f15636ac52 Wheel mice work again!
(Old configs don't.)

evdev.c:

    Add EvdevParseMapToButton and EvdevParseMapToButtons to evdev_map_parsers.

    Add EvdevParseMapOption to search through evdev_map_parsers.

    Fix up EvdevTokenize to handle the evdev_option_token_t changes.

    EvdevAxesNew0 after BtnNew0 instead of before now.
    (This isn't the right fix.)

evdev.h:

    EVDEV_MAXBUTTONS -> BTN_MAX.

    Redid evdevBtnRec with the new mapping goodness.

    Removed v_min and v_max from evdevAbsRec.

    Reworked evdev_option_token_t, no union, no is_chain.
    If it's a chain, it still has a string, but the chain pointer is set.

    EvdevParseMapToButton, EvdevParseMapToButtons, and EvdevParseMapOption.

evdev_axes.c:

    Kill off EvdevAxesMapButton, a variant lives in evdev_btn.c now.

    Changes for the evdev_option_token_t changes.

    Use EvdevParseMapOption instead of repeating the contents twice.

    Disable EV_ABS_V_INVERT for the moment. (Better fix maybe needed.)

evdev_btn.c:

    s/Ptr /Rec */g

    EvdevMapButton and parser.

    EvdevMapButtons and parser.

    Nuke EvdevBtnCalcRemap as a whole.

    Move everything but the alloc to New1 from New0.

    New mapping code, same guts os the axes mapping code even.
2007-06-06 04:41:54 -04:00
Zephaniah E. Hull
276685fa1d Fix REL mode.
Make buttons mostly work again. (Short term fix.)

NOTE: Wheel to button remapping is still missing!
2007-06-05 23:55:50 -04:00
Zephaniah E. Hull
27a86f8168 Update the copyright notices for me to include 2007.
Finish merging copyright notices. (evdev_key.c was missed.)
2007-06-05 23:19:59 -04:00
Zephaniah E. Hull
26dbf38041 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-evdev
Conflicts:

	src/evdev.h
2007-06-05 23:14:46 -04:00
Zephaniah E. Hull
294355842b Alright, this is a really big commit that breaks stuff.
evdev.h:

    Switch to flags in the abs and rel structs.

    Add the axes struct, and defines.

    Rework the abs and rel structs, moving stuff to the axes struct and moving
    everything to the new mapping handling.

    Add the structs and function declarations for the new tokenization stuff,
    parsing stuff, and mapping stuff.

evdev.c: Add EvdevTokenize, and the evdev_map_parsers list.

evdev_axes.c:

    Basicly a full rewrite, big, messy.

    We now use a completely different mapping setup for axes, and mapping to
    buttons is currently missing.

    However we now handle ABS_CALIB and ABS_AREA, including rotation in both
    rel and abs modes.

evdev_btn.c:

    Disable lots of code and break things horribly, we compile but we don't
    work very well.

    Fixing this is next on my todo list.
2007-06-05 23:12:58 -04:00
Kristian Høgsberg
9eb546e0e0 Fix header file #ifdef guard. 2007-06-05 18:26:07 -04:00
Kristian Høgsberg
daf926081d Merge copyright notices. 2007-06-05 18:24:33 -04:00
Peter Hutterer
c22c955c48 Disable and remove the device when a read error occurs. 2007-04-24 23:20:43 +09:30
Zephaniah E. Hull
f87c44b90c Try harder to make unplugging work. 2007-04-24 07:44:26 -04:00
Zephaniah E. Hull
23309b334c Kill some more unused bits. 2007-04-24 07:34:53 -04:00
Zephaniah E. Hull
1716ec88bb Handle driver removal cleanly, we now xfree everything we Xcalloc.
NOTE: Someone needs to check for memory leaks, I'd be willing to bet
a fair bit that we've got tons in the mouse and xkb code, but.
2007-04-24 07:34:25 -04:00
Zephaniah E. Hull
246812bfbc Remove the evil xf86ActivateDevice declaration, don't need it anymore.
Fix the crash on device unplug.

NOTE: We still don't properly get rid of ourselves.
2007-04-24 07:01:54 -04:00
Zephaniah E. Hull
a0ea7363f5 Remove all of evdev_brain.c and all callers.
Remove the non-functional 2.4 kernel compiling compatibility.

Remove the XInput 1.4+ SendCoreEvents/DontSendCoreEvents define replacements.

Remove evdevDriver, some stuff from evdevDevice, all users.

NOTE: This WILL BREAK all existing configurations.

NOTE: Device read failure segfaults, don't unplug stuff.
2007-04-24 06:49:11 -04:00
Zephaniah E. Hull
3c4a96fbd8 Updated configure to 1.2.0, no changes yet.
This branch is the great xserver input-hotplug rewrite, consider it unstable
but usable with the 'current' (as of this commit) git xserver.

(Once it's more done that is.)

NOTE: This branch will _not_ remain source or binary compatable with
pre-input-hotplug xservers, you have been warned.
2007-04-24 06:12:14 -04:00
Peter Hutterer
ba65c34068 Remove driver from list if no device is associated any more.
This effectively stops the driver from hotplugging new devices. Devices have
to be added with the dbus hotplugging events.
2007-04-23 10:08:48 +09:30
Peter Hutterer
9644a4afbf Remove direct call to DEVICE_INIT, ActivateDevice() takes care of that. 2007-04-19 18:47:05 +09:30
Peter Hutterer
d37ba205bb Add some documentation to evdev.c and evdev_brain.c. 2007-04-19 18:46:57 +09:30
Peter Hutterer
9875e2f7f9 ActivateDevice() before EnableDevice() in EvdevNew. 2007-04-19 12:58:16 +09:30
Peter Hutterer
6db4a9fb84 Key: Remove duplicate of keycode 0x6f, remove index 0xf8 to get a
maxKeyCode of 255. This way keycode range is in sync with core keyboard range.
2007-03-25 15:40:47 +09:30
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