Commit Graph

131 Commits

Author SHA1 Message Date
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
Sascha Hlusiak
fd83fbc114 Added "keylow" and "keyhigh" option to axes, which generates key events when the axis is moved.
One can specify scancodes for negative and positive axis movement. When the axis is moved out of the deadzone,
keydown events are once generated, and keyrelease events are generated when the axis returns to 0.
One can map a pad to the four arrow keys to play games that do not support a joystick.
2007-08-08 14:52:27 +02:00
Sascha Hlusiak
20bcf86f2a Added "oldvalue" to axis struct, containing the exact last "value" of the axis 2007-08-08 14:49:29 +02:00
Sascha Hlusiak
f4c1519bff Added note about SendCoreEvents keyword to ServerLayout in manpage. 2007-08-08 12:58:30 +02:00
Sascha Hlusiak
382c116887 Added missing section about valuators to manpage
The manpage was missing detailed information about the reported valuators per axis.
Made minor changes of style and grammar.
2007-07-11 03:18:07 +02:00
Sascha Hlusiak
68df98082c Prepared for release 1.2.2 xf86-input-joystick-1.2.2 2007-07-07 23:43:13 +02:00
Sascha Hlusiak
321e439548 Reverted commit a24a5eeb30 (prepare for keymap)
The files and methods will be added back when it is time. So far there is no need for jstk_key.* files and dummy methods.
2007-07-07 23:33:32 +02:00
Sascha Hlusiak
1e72e8111b Mark float constants with proper f suffix 2007-07-07 23:08:45 +02:00
Sascha Hlusiak
dc4c0a5e0d Removed abundant debugging messages
Debugging messages about loading and unloading the module were printed
every time, before debug_level could be set. Removed the messages
completely, because they use nobody except me.
2007-07-07 22:57:29 +02:00
Sascha Hlusiak
2b54ee1b02 Added notes to the manpage 2007-07-07 22:52:24 +02:00
Sascha Hlusiak
a24a5eeb30 Prepared for proper usage of keymap for device 2007-04-30 00:37:27 -04:00
Sascha Hlusiak
f0ab39f9d2 Fixed dynamic button mapping properly.
linux_jstk: Button events only reported, when actually changed

Button number and button map reported to X are now calculated correctly.
2007-04-29 23:24:40 -04:00
Sascha Hlusiak
2bbc03ef66 Removed unnamed unions to compile with gcc 2.95
Only report correct amount of buttons to xorg-server-1.3

Call InitButtonClassDeviceStruct with right number of buttons and right mapping. Works correctly
since xorg-server-1.3.
2007-04-29 21:59:54 -04:00
Sascha Hlusiak
461b57cdb1 Makefile.am: Rule to autogenerate ChangeLog from git on make dist 2007-04-24 22:23:43 -04:00
Sascha Hlusiak
25b5234948 Fixed wrong button number reported by bsd_jstk.c.
Fixed typo in reporting button and axes numbers in bsd_jstk.c
xf86-input-joystick-1.2.1
2007-04-20 21:09:10 -04:00
Sascha Hlusiak
e1871e2195 Fixed accelerated axis movement not working the first time after startup
Modified used algorithm to produce slower and smoother acceleration
2007-04-19 12:39:53 -04:00
Sascha Hlusiak
44aafff9e9 Considering JS_EVENT_INIT events as real events again
We want to perform actions on JS_EVENT_INIT events, so we don't miss anything and follow the state of
the device
2007-04-16 23:01:31 -04:00
Sascha Hlusiak
8cafcf33ec Fixed possible double close of device in case of error.
Opening device in O_RDONLY mode, instead of O_RDWR.
2007-04-15 23:48:52 -04:00