Commit Graph

148 Commits

Author SHA1 Message Date
Sascha Hlusiak
13813e0982 Add ChangeLog to .gitignore 2008-08-23 23:38:57 +02:00
Sascha Hlusiak
0410505147 Expose device properties for mouse_enabled, keys_enabled and axes deadzones.
Deadzones takes up to MAXAXES 32 bit numbers. If only one value is supplied, it is applied to all axes the same. If multiple values are
supplied, they are applied to the axis they stand for, all other values are untouched.
2008-08-23 23:31:33 +02:00
Sascha Hlusiak
e64b4ebcd1 Add support for device properties.
Only exported property for now is DebugLevel.
2008-08-23 22:02:54 +02:00
Sascha Hlusiak
5e91f0bdd4 Remove stale comment 2008-08-23 21:18:41 +02:00
Matthieu Herrb
a4d96de5fd Fix check for BSD dev/usb/usbhid.h (needs dev/usb/usb.h). 2008-08-23 17:01:40 +02:00
Peter Hutterer
7d6f9a32ab Fix build. xf86Version.h -> xorgVersion.h 2008-08-14 15:41:37 +09:30
Sascha Hlusiak
1d67c9d801 Added more examples for the x11_options properties of xorg-server-1.5
Since xorg-server-1.5 you can pass arbitrary options using the x11_options namespace. No additional
hacks are neccessary to make hal hotplug the joystick driver.
2008-06-19 11:10:02 +02:00
Peter Hutterer
10203ddef9 Check for XINPUT ABI 3. 2008-05-27 11:54:36 +09:30
Sascha Hlusiak
0961ffa848 Bumped to version 1.3.2 xf86-input-joystick-1.3.2 2008-04-27 19:16:29 +02:00
Sascha Hlusiak
c3e3fb8795 Display evdev bus/vendor/product/version in separate line 2008-04-09 15:09:46 +02:00
Sascha Hlusiak
edcc8c26df Fixed keymap size to 8-256 to prevent crash
Newer xservers don't like keymaps that are smaller than 248 keys.
2008-03-30 13:21:22 +02:00
Sascha Hlusiak
fac2c42a01 Clear complete keymap instead of only the first element 2008-03-30 13:05:35 +02:00
Sascha Hlusiak
a44e15ad75 Fixed off-by-one in keymap generation code 2008-03-30 13:03:57 +02:00
Sascha Hlusiak
2aeaf7b7f3 Allow '+' as separator for key mapping as in "key=Alt_L+Tab" 2008-03-30 12:44:39 +02:00
Matthieu Herrb
ce01777488 Makefile.am: nuke RCS Id 2008-03-08 23:02:08 +01:00
Sascha Hlusiak
94cc174cd8 Added "StartMouseEnabled" and "StartKeysEnabled" options
With the disable-mouse and disable-keys button mapping the event generation can be toggled.
These two options will start X with the event generation already disabled, so it can be
enabled later with the appropriate button mapping. Default: Event generation is enabled.
2008-01-06 18:58:47 +01:00
Sascha Hlusiak
c968077dcb Changed copyrights to include year 2008 2007-12-31 20:21:30 +01:00
Sascha Hlusiak
4bf8816620 Changed default deadzone in manpage from 1000 to 5000 2007-12-09 19:22:59 +01:00
Sascha Hlusiak
1f61022d4d Increased default deadzone from 1000 to 5000 2007-12-09 18:18:45 +01:00
Sascha Hlusiak
847c36e113 Typo in man page
Last axis of default axis configurations was #3 instead of #7
2007-12-09 11:54:38 +01:00
Sascha Hlusiak
01637abd2b Mentioned hotplugging and hal policy in man page xf86-input-joystick-1.3.1 2007-12-07 00:17:56 +01:00
Sascha Hlusiak
47cd8141f9 Bumped to version 1.3.1 2007-12-06 23:55:20 +01:00
Sascha Hlusiak
c463776b8b Added example hal policy file for input hotplugging of joysticks
Hal policy config/50-x11-input-joystick.fdi is not installed by default and you probably
don't want to.
2007-12-06 23:48:49 +01:00
Sascha Hlusiak
833454bd7b Looking for Path parameter besides Device (used by HAL+input hotplug) 2007-12-06 23:22:43 +01:00
Sascha Hlusiak
dca42ff25d Fixed default button mappings
Default button mappings were set to buttons 4, 5 and 6 instead of 1, 2 and 3.
2007-12-06 23:22:06 +01:00
Sascha Hlusiak
fba24465bc Return NULL on device configure fail instead of unconfigured device, which made X segfault. 2007-12-06 22:56:26 +01:00
Sascha Hlusiak
2fba11efca New: evdev backend 2007-12-06 22:28:12 +01:00
Sascha Hlusiak
78616fb817 Mentioned multiple backends in man page 2007-12-05 22:17:36 +01:00
Sascha Hlusiak
9e5f4e6fcc Fixed implicit declaration warnings because of missed header files 2007-12-05 21:33:27 +01:00
Sascha Hlusiak
43790502b5 Renamed backend files from *_jstk.{c,h} to backend_*.{c,h} 2007-12-05 21:30:12 +01:00
Sascha Hlusiak
032138d771 Added backend selection code.
From all available backends they are tried in the order: evdev, linux joystick, bsd
usbhid. This needed to separate the backends which were usually used to replace each
other.
2007-12-05 21:22:50 +01:00
Sascha Hlusiak
37aae47313 configure.ac: Checking for available kernel backends instead of OS
The configure script now checks for availability of several backends like Linux's
joystick, Linux's evdev, BSD's usbhid. This way several backends can be compiled in and
used with the same binary module.
Backend selection code still missing!
2007-12-05 18:00:12 +01:00
Sascha Hlusiak
f581e2b0da Add check for kbproto in configure script
On systems without kbproto installed, the XKB headers might be missing and the build fails. Fixes Debian bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=448770
2007-11-11 18:02:42 +01:00
Sascha Hlusiak
c9e359fda6 Added missing headerfiles to Makefile.am
Files StrKeysym.h and ks_tables.h were missing. Sorry, guys.
xf86-input-joystick-1.3.0-1
2007-10-27 18:50:08 +02:00
Sascha Hlusiak
8668189c26 Debug output of AutoRepeat option xf86-input-joystick-1.3.0 2007-10-27 15:38:09 +02:00
Sascha Hlusiak
68e4850b28 Added AutoRepeat option to specify rate and delay for key events.
So far the autorepeat settings of xorg were used, thus sharing the settings with all other keyboard. This is still the default but the
rate and delay can be changed per device, not conflicting with the settings of other keyboards.
2007-10-10 18:00:59 +02:00
Sascha Hlusiak
15870ef9bf Use XStringToKeysym to parse symbolic keys defined in xorg.conf.
Users can map buttons to "key=space" or "key=Left" to map them to XK_space or XK_Left. As
fallback the numerical expression still works.
2007-10-06 17:28:59 +02:00
Sascha Hlusiak
0897d8acde Integrated XStringToKeysym from libX11 in the module.
To look up Keysyms from Strings the method XStringToKeysym comes in handy, which would
require linking against libX11. By integrating the method in the module, this can be
avoided until similar functionallity get's included in xorg-server.
2007-10-06 17:07:19 +02:00
Sascha Hlusiak
9e8f8d54bd Updated manpage to reflect keymap changes 2007-10-03 22:46:30 +02:00
Sascha Hlusiak
c2270222a8 Prepared for 1.3.0 release. Raised dependency of xorg-server to at least 1.3.99.901 for new keymap
behaviour.
2007-10-03 22:13:37 +02:00
Sascha Hlusiak
a62abe36b8 Readded own keymap for Joystick keys. This changes meaning of key, keylow and
keyhigh values in xorg.conf from scancodes to keysyms!

New xorg-server 1.4 fixes a lot of keyboard things. This makes it necessary to
provide an own mapping rather than using the mapping of the current keyboard. A
keymap is built dynamically from the options provided. The options now need to
provide a keysym for each button instead of the scancodes of another keyboard
attached keyboard.
2007-10-03 21:37:25 +02:00
Sascha Hlusiak
65009ab568 Added little check if device is enabled before disabling it 2007-10-03 00:33:09 +02:00
Sascha Hlusiak
13c850fe77 configure.ac: prepared for 1.2.3 release xf86-input-joystick-1.2.3 2007-08-12 13:01:16 +02:00
Sascha Hlusiak
3651cc8ee6 Added --enable-debug option to configure script
The options --enable-debug and --disable-debug control if additional debugging messages shall be included in the binary, that can made
visible with the "DebugLevel" option in the xorg.conf. Default: Enabled.
2007-08-12 12:49:59 +02:00
Sascha Hlusiak
ca6968c180 Explained new key generation features for axes in man page.
Explained the behaviour of accelerated vs relative axes that are mapped to keys. Added example to man page.
2007-08-12 00:04:35 +02:00
Sascha Hlusiak
e24622b48e Key autorepeat added for axes with mode=relative
If axis is set to relative and keylow and keyhigh are assigned, autorepeat for these keys is emulated with a speed relative to the
value of the axis (keydown and keyup are generated frequently). A factor for this autorepeat speed can be assigned by
"axis=<factor>key".
If mode is "accelerated", the axis behaves like a button: only one keydown and one keyup, X does autorepeat for the key.
2007-08-11 23:27:57 +02:00
Sascha Hlusiak
38297b0622 Fixed button mapping to an axis needing amplify value.
Button mapping without amplify value like "axis=x" used uninitialized value for amplify,
making an amplify value mandatory. With no amplify value, 1.0 is assumed.
2007-08-11 22:32:54 +02:00
Sascha Hlusiak
dd396931b7 Move subpixel movement from global to per axis/button.
Instead of using one global subpixel variable for all axes and buttons, the axis/button
struct for each axis/button holds it's own subpixel variable. This is neccessary to
implement mapping of relative axes to keys, which needs to save own "subpixel" values.
2007-08-11 22:22:49 +02:00
Sascha Hlusiak
b685505f14 Reformatted whole source to 4-space-indents
Large parts of the code were written with 2-space-indents only.
Upgraded to 4-space indents to improve readability. Sorry for touching almost
every line. :-S
2007-08-11 20:47:13 +02:00
Sascha Hlusiak
32c6ba4c29 Added example about mapping axes to keys to manpage. 2007-08-08 15:00:15 +02:00