summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-02-24stop using long deprecated xf86BlockSIGIO() and xf86UnblockSIGIO()HEADmasterEnrico Weigelt, metux IT consult2-7/+7
These functions have been replaced by input_lock() and input_unlock() about a decade ago and only exisiting as inlined wrappers. v2: increase required server version to 1.18.99.2 No need to support almost 1.5 decades old and unmaintained Xserver version, almost one decade is more than enough ;-) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08xf86-input-joystick 1.6.4xf86-input-joystick-1.6.4Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16Fix spelling/wording issuesAlan Coopersmith8-9/+9
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith3-20/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-16Fix quoting in man page synopsis sectionAlan Coopersmith1-1/+1
Fixes: https://gitlab.freedesktop.org/xorg/driver/xf86-input-joystick/issues/1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-01-08Adapt to USB HID header changes on NetBSD-8.99.9.Manuel Bouyer2-0/+4
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26configure: Drop AM_MAINTAINER_MODEPeter Hutterer2-2/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-11-18joystick 1.6.3xf86-input-joystick-1.6.3Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-08-16use xf86{Add,Remove}EnabledDevice()Matthieu Herrb1-4/+3
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-20Add support for server managed fdsHans de Goede6-17/+39
Keep things simple by handling server managed fds in the common parts of the open and close paths. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-20Add a generic jstkCloseDevice helper functionHans de Goede5-33/+27
This is a preparation patch for adding support for server managed fds. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-20Use jstkCloseDevice_* on error in jstkOpenDevice_* backend functionsHans de Goede3-35/+22
This is a preparation patch for adding support for server managed fds, this also fixes a missing free() in an error handling path in the evdev back-end. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-10-10Handle DEVICE_ABORT for input ABI 19.1Peter Hutterer1-0/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-16joystick 1.6.2xf86-input-joystick-1.6.2Sascha Hlusiak1-1/+1
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2013-01-16config: warning in default xorg.conf.d snippet: do not enable by defaultSascha Hlusiak1-0/+4
see discussion: https://bugs.gentoo.org/show_bug.cgi?id=403003 distributions should not ship the module enabled by default, because a lot of users have the joystick module installed without knowing, resulting in confusion and bad user experience when trying to play games, the more likely usecase when plugging in a joystick. the default configuration only fits for a limited number of users. it does not make much sense to automatically enable hotplugging of the module without explicit user consent and reviewing of the configuration. Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2013-01-16jast_axis: tune accelerated axis transformation to better work with circular ↵Sascha Hlusiak1-2/+55
axis fields reference: https://bugs.freedesktop.org/show_bug.cgi?id=42399 joysticks with a rectangular field have a corner position of (32768,32768), joysticks with a circular field have (23170,23170). make sure that diagonal movement feels fast. either: 1) linear f(32768) ~= f(23170) + f(23170) f(32768) ~= a * f(23170) a = 2.0 on circular joysticks, the time needed for xy movement is exactly the time needed for x + the time for y separately. absolute diagonal travel speed (in cm/s) is 0.707 times as fast, which feels pretty slow. on square joysticks, diagonal travel speed is always 1.41 times faster than orthogonal travel speed. time needed for diagonal movement is always 0.5 times as long as for orthogonal movement. the value of a = 2.0 results in a nice, non-linear acceleration. or 2) trigonometric f(32768) ~= sqrt(f(23170)^2 + f(23170)^2)) f(32768) ~= a * f(23170) a = 1.414 on circular joysticks, the absolute pointer travel speed (in cm/s) is now the same for both linear and diagonal movement, which feels natural. moving diagonally takes 0.707 times the time of moving orthogonally. on square joysticks, values are as in 1) the value of a = 1.414 results in linear acceleration, which feels too slow. to maintain non-linear acceleration, make sure that: a >>= 1.414 the following formula achieves results inbetween, so it should feel natural on both devices while maintaining a nice acceleration: f(32768) ~= 1.620 * f(23170)
2013-01-16backend_evdev: fix scaling overflow for high resolution axesSascha Hlusiak1-2/+24
The module scales all axis values from the kernel to the range of -32768 .. 32768, for compatibility with the old joystick kernel module. The current implementation had an integer overflow, if the axis had a high resolution of > 16384, like the popular XBox 360 controller. This commitmakes the scaling use float instead to fix erratic behaviour on high resolution joysticks. The joystick backend was not affected. Fixes bug: https://bugs.freedesktop.org/show_bug.cgi?id=42399
2013-01-14Replace deprecated Automake INCLUDES variable with AM_CPPFLAGSGaetan Nadon1-1/+1
Excerpt https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html - Support for the long-deprecated INCLUDES variable will be removed altogether in Automake 1.14. The AM_CPPFLAGS variable should be used instead. This variable was deprecated in Automake releases prior to 1.10, which is the current minimum level required to build X. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-10-03configure: enable debug output code by defaultSascha Hlusiak1-3/+3
there are rare cases when disabling debug code gives any benefit but the lack of debugging output, which needs to be enabled anyway with the DebugLevel option
2012-10-03man: more manpage tuning and polishingSascha Hlusiak1-45/+59
2012-10-03config: mention floating option in xorg.conf.d snippetSascha Hlusiak1-0/+3
2012-10-03man: mention use cases for when to use the module and when not toSascha Hlusiak1-9/+30
2012-10-03man: some typos and grammar fixesSascha Hlusiak1-13/+13
2012-10-03man: point out that the joystick module is not a joystick driverPeter Hutterer1-1/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2012-09-25silence compiler warningsSascha Hlusiak3-10/+10
2012-03-11joystick 1.6.1xf86-input-joystick-1.6.1Sascha Hlusiak1-1/+1
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2011-11-13Copy pInfo->driver to option list to fix hotplugging of keyboard deviceSascha Hlusiak1-0/+1
udev does copy the Driver line to the list of options, but when manually specifying the driver in xorg.conf, the option "Driver" is unset. Because we do hotplug a sub-device from within the core device, we need the "Driver" option to be present in the list. This should fix archlinux bug #23577: https://bugs.archlinux.org/task/23577 Thanks to Malek for coming up with a fix. Signed-off-by: Sascha Hlusiak <contact@saschahlusiak.de>
2011-11-13man: valuators are not added automaticallySascha Hlusiak1-3/+0
2011-11-13Merge branch 'master' of ↵Sascha Hlusiak1-21/+44
ssh://git.freedesktop.org/git/xorg/driver/xf86-input-joystick
2011-11-02Deal with opaque input option types.Peter Hutterer1-15/+38
ABI 14 made the InputOption type opaque, move the existing code to ifdefs and use the new function calls otherwise. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2011-10-31Fix option type for option duplicationPeter Hutterer1-8/+8
xf86OptionListDuplicate() duplicates an XF86Option list, not an InputOption list. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-16label buttons and axesSascha Hlusiak2-7/+40
Buttons are labeled "Button %d", starting with 0 and representing the button in X _after_ mapping. Mapping can be changed while running so the labels will be constant. Axes are labeled "Axis %d", starting with 1, representing the _physical_ axis that reports the valuator data. The raw valuators can't be dynamically mapped, the first two valuators always are labeled "Rel X" and "Rel Y", representing the aggregated post-calculation data from all axes. Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2011-09-06unify capitalization of joystick propertiesDevin J. Pohly1-1/+1
the axis keys high/low properties were inconsistently capitalized, leading to potential confusion as to why one works but not the other. Signed-off-by: Devin J. Pohly <djpohly+xorg@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-18Return proper default for unknown values in pInfo->device_control.Terry Lambert2-2/+3
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-20joystick 1.6.0xf86-input-joystick-1.6.0Sascha Hlusiak1-1/+1
Signed-off-by: Sascha Hlusiak <saschahlusiak@arcor.de>
2011-04-20Updated man page to reflect latest changesSascha Hlusiak1-27/+20
2011-04-20Added xorg.conf.d example snippedSascha Hlusiak2-1/+52
Not installed by default, left for distributors. Copy 50-joystick-all.conf to /etc/X11/xorg.conf.d/ and modify to your needs.
2011-04-20Revert "config: fdi file must be installed in ↵Sascha Hlusiak1-3/+1
$(datadir)/hal/fdi/policy/20thirdparty" The fdi file was never meant to be installed by default but exists merely as an example and documentation for distributors who may decide to ship it by default or install it in share/doc/... This reverts commit 1d67a2da26fa3ba0b8f5498da89c01aeaa551515.
2011-04-20Free pInfo->private only once to fix server crash on unplug (bug #35391)Sascha Hlusiak1-7/+20
The hotplugged keyboard device and the main device share the same pInfo->private data and the same jstkCoreUnInit, so the data is freed twice. Furthermore, since the keyboard device will delete itself, we must not delete it from within the deletion of the main device. Freeing pInfo->private is done by the main device, hopefully done independently of the order in which the two devices will be removed by the server. Should fix bug #35391
2011-04-06joystick 1.5.99.901xf86-input-joystick-1.5.99.901Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-12-16Support input ABI 12Peter Hutterer4-141/+129
This commit adds support for input ABI 12, consisting of a number of changes: - requires an X server with an ABI of 12 - valuators have a per-mode setting - new PreInit prototype. Because of the new PreInit prototype, the hotplug system has been switched around too (should have probably been done in a separate commit before, but...). The old hotplug mechanism added a separate ModuleInfoRec for the keyboard part of the driver. This isn't feasable for InputClass configurations, the driver part may get overwritten. On entering the driver, after checking a few default values, hotplug the keyboard device (wacom-style) and let it initialize. Because NIDR calls DEVICE_INIT and DEVICE_ON the keyboard must initialise the private pointer and pass it back to the original device. Call order is: NewInputDeviceRequest - jstkCorePreInit - jstkKeyboardHotplug - NewInputDeviceRequest - jstkCorePreInit immediately return jstkKeyboardPreInit() - keyboard DEVICE_INIT - keyboard DEVICE_ON return keyboard device - copy keyboard->priv to joystick->priv - finish jstkCorePreInit as normal - joystick DEVICE_INIT - joystick DEVICE_ON Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Trevor Woerner <twoerner@gmail.com>