debian/0000755000000000000000000000000012141430740007162 5ustar debian/changelog0000644000000000000000000000517112141430740011040 0ustar xboxdrv (0.8.5-1) unstable; urgency=low * New upstream version * debian/control: - bump Standards-Version to 3.9.4 (no change needed) * debian/patches/: - drop use-PATH.patch (not needed anymore as the whole environment is imported now) * debian/control: - use canonical anonscm.d.o URLs in the Vcs-* fields * debian/copyright: - update the copyright years -- Andrey Rahmatullin Sun, 05 May 2013 16:17:43 +0600 xboxdrv (0.8.4-1) unstable; urgency=low * New upstream version * debian/patches/fix-xboxdrv-manpage.patch: - update for the new upstream version * debian/compat: - bump to 9 * debian/control: - bump Build-Depends for debhelper to >= 9 - bump Standards-Version to 3.9.3 (no change needed) * debian/patches/use-PATH.patch: - use $PATH from the environment during the build to make use of ccache when it's available * debian/rules: - pass CPPFLAGS, CFLAGS, CXXFLAGS and LDFLAGS to scons - enable all hardening options * debian/copyright: - update the format URL - update copyright years -- Andrey Rahmatullin Sat, 16 Jun 2012 16:25:17 +0600 xboxdrv (0.8.2-1) unstable; urgency=low * New upstream version * Upload to unstable * debian/control: - change Architecture to linux-any because of a dependency on the linux uinput kernel module - update Build-Depends for the new version: remove libboost-thread1.42-dev, add libboost-dev, libdbus-glib-1-dev and libudev-dev, replace libusb-dev with libusb-1.0-0-dev - bump Standards-Version to 3.9.2 (no change needed) - move the package to the pkg-games team (change Maintainer and Uploaders), update Vcs-* paths respectively - move python and python-dbus from Suggests to Recommends because of new xboxdrvctl script, drop python-gobject from Suggests because xboxdrv-daemon was dropped - small Description fix * debian/copyright: - remove sections for src/gui/evdev.py and kernel/* because the corresponding files were removed - fix GPL2 license file path in debian/copyright * debian/docs: - remove lines for files that were dropped from the source * debian/install: - remove the file, as xboxdrv-daemon was dropped * Fix lintian warnings for xboxdrv.1 manpage * Add xboxdrvctl.1 manpage * Remove /usr/bin/env from the xboxdrvctl shebang (per Python Policy 1.4.2) -- Andrey Rahmatullin Tue, 16 Aug 2011 22:05:29 +0600 xboxdrv (0.6.4-1) experimental; urgency=low * Initial release (Closes: #610009) -- Andrey Rahmatullin Sat, 15 Jan 2011 22:36:10 +0500 debian/copyright0000644000000000000000000000424512141430740011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: xboxdrv Upstream-Contact: Ingo Ruhnke Source: http://pingus.seul.org/~grumbel/xboxdrv/ Files: * Copyright: 2008-2013, Ingo Ruhnke License: GPL-3+ Files: debian/* Copyright: 2009-2010, Ingo Ruhnke 2011-2013, Andrey Rahmatullin License: GPL-3+ Files: tools/evtest.c tools/jstest.c Copyright: 1996-2000, Vojtech Pavlik License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/rules0000755000000000000000000000060212141430740010240 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all %: dh $@ override_dh_auto_build: scons CPPFLAGS="$(CPPFLAGS)" CCFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" override_dh_auto_install: make install PREFIX="/usr" DESTDIR="$(CURDIR)/debian/xboxdrv" sed -i '1s,#!/usr/bin/env python,#!/usr/bin/python,' $(CURDIR)/debian/xboxdrv/usr/bin/xboxdrvctl debian/xboxdrvctl.10000644000000000000000000000167112141430740011450 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.39.2. .TH XBOXDRVCTL "1" "March 2011" "xboxdrvctl" "User Commands" .SH NAME xboxdrvctl \- remote control application for the xboxdrv daemon .SH SYNOPSIS .B xboxdrvctl [\fIOPTIONS\fR] .SH DESCRIPTION Remote control application for the xboxdrv daemon. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show the help message and exit .IP .SS "D\-BUS OPTIONS" .TP \fB\-b\fR BUS, \fB\-\-bus\fR=\fIBUS\fR connect to D\-Bus bus BUS .TP \fB\-o\fR OBJ, \fB\-\-object\fR=\fIOBJ\fR use D\-Bus object OBJ .IP .SS "XBOXDRV OPTIONS" .TP \fB\-S\fR, \fB\-\-status\fR print controller status .TP \fB\-s\fR SLOT, \fB\-\-slot\fR=\fISLOT\fR use slot SLOT for actions .TP \fB\-l\fR NUM, \fB\-\-led\fR=\fINUM\fR set LED .TP \fB\-r\fR L:R, \fB\-\-rumble\fR=\fIL\fR:R print controller status .TP \fB\-c\fR NUM, \fB\-\-config\fR=\fINUM\fR switches to controller configuration NUM .TP \fB\-\-shutdown\fR shuts down the daemon debian/gbp.conf0000644000000000000000000000007212141430740010600 0ustar [DEFAULT] upstream-tag = v%(version)s pristine-tar = True debian/watch0000644000000000000000000000011612141430740010211 0ustar version=3 http://pingus.seul.org/~grumbel/xboxdrv/ xboxdrv-linux-(.+).tar.bz2 debian/compat0000644000000000000000000000000212141430740010360 0ustar 9 debian/docs0000644000000000000000000000021112141430740010027 0ustar AUTHORS NEWS PROTOCOL README TODO chatpad.xkb doc/sensitivity.svg doc/sensitivity.gnuplot doc/xbox360-asciiart.txt examples/ runxboxdrv/ debian/patches/0000755000000000000000000000000012141430740010611 5ustar debian/patches/fix-xboxdrv-manpage.patch0000644000000000000000000002170112141430740015521 0ustar Description: Fix xboxdrv.1 errors reported by lintian Fix all hyphen-used-as-minus-sign and spelling-error-in-manpage reports. Author: Andrey Rahmatullin Forwarded: no Last-Update: 2012-02-03 diff --git a/doc/xboxdrv.1 b/doc/xboxdrv.1 index d801ea7..b3b7bd3 100644 --- a/doc/xboxdrv.1 +++ b/doc/xboxdrv.1 @@ -56,7 +56,7 @@ for more information. \*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T> Display help text and exit. .TP --V, --version +\-V, \-\-version Print the version number and exit. .TP \*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-verbose\fR\*(T> @@ -144,8 +144,8 @@ files. Regular key/value pairs must go into the [xboxdrv] section. '#' and ';' can be used for comments. Key names have for most part the same name as command line options. Command line options that take a list of -input mappings (--ui-buttonmap, --ui-axismap, ---evdev-absmap, ...) can be split of into their own +input mappings (\-\-ui\-buttonmap, \-\-ui\-axismap, +\-\-evdev\-absmap, ...) can be split of into their own section for better readability. The \*(T<\fIexamples/\fR\*(T> directory contains @@ -347,7 +347,7 @@ xpad module loaded and want to use xboxdrv without unloading it. .TP \*(T<\fB\-\-generic\-usb\-spec\fR\*(T> \fINAME=VALUE,...\fR -Allows to specify from which +Allows one to specify from which endpoint \*(T<\fBgeneric\-usb\fR\*(T> will read. The spec as the form of \fINAME=VALUE,...\fR. Allowed values are: @@ -789,7 +789,7 @@ T} T{ lt(7), rt(8) T} T{ -analog trigger (needs --trigger-as-button option) +analog trigger (needs \-\-trigger\-as\-button option) T} T{ tl, tr @@ -799,7 +799,7 @@ T} T{ du(up), dd(down), dl(left), dr(right) T} T{ -dpad directions (needs --dpad-as-button option) +dpad directions (needs \-\-dpad\-as\-button option) T} T{ green, red, yellow, blue, orange @@ -811,7 +811,7 @@ T} Just like with \*(T<\fB\-\-ui\-buttonmap\fR\*(T> you can add button filter to each button. .TP \*(T<\fB\-\-axismap\fR\*(T> \fIAXIS=MAPPING,...\fR -Axis remapping is available via --axismap and works the same as button +Axis remapping is available via \-\-axismap and works the same as button mapping. In addition you can supply a sign to indicate that an axis should be inverted. So if you want to invert the y1 axis start with: @@ -854,7 +854,7 @@ as autofire while another one, emitting the same signal, acts normally. .fi .TP \*(T<\fB\-\-axis\-sensitivty \fR\*(T>\fIAXIS=SENSITIVITY\fR,... -The sensitive of an axis can be adjusted via --axis-sensitivty: +The sensitive of an axis can be adjusted via \-\-axis\-sensitivty: .nf \*(T<$ xboxdrv \-\-axis\-sensitivty X1=\-1.0,Y1=\-1.0\*(T> @@ -863,7 +863,7 @@ The sensitive of an axis can be adjusted via --axis-sensitivty: A value of 0 gives you the default linear sensitivity, values larger then 0 will give you higher sensitivity, while values smaller then 0 will give you lower -sensitivity. Sensitivity values in the range of [-1, 1] +sensitivity. Sensitivity values in the range of [\-1, 1] will generally give good results, everything beyond that won't be of much practical use. @@ -946,7 +946,7 @@ Will give you controls that are relative to your character instead of your viewpoint. .TP \*(T<\fB\-\-four\-way\-restrictor\fR\*(T> -The \*(T<\fB\-\-four\-way\-restrictor\fR\*(T> option allows to +The \*(T<\fB\-\-four\-way\-restrictor\fR\*(T> option allows one to limit the movement on both analogsticks to only four directions (up, down, left, right), the diagonals (up/left, up/right, down/left, down/right) are filtered out from the @@ -1082,7 +1082,7 @@ switch this behaviour off. \*(T<\fB\-\-device\-name NAME\fR\*(T> Changes the descriptive name the device will have. This options acts the same as ---device-names \fICURRENTSLOT\fR.auto=\fINAME\fR +\-\-device\-names \fICURRENTSLOT\fR.auto=\fINAME\fR .TP \*(T<\fB\-\-device\-names TYPE.SLOT=NAME,...\fR\*(T> Changes the descriptive name the device will @@ -1097,7 +1097,7 @@ matches everything. Changes the vendor, product, version and bus id that the device will have. The last two arguments are optional. This options acts the same as ---device-usbids \fICURRENTSLOT\fR.auto=\fIVENDOR:PRODUCT:VERSION:BUS\fR +\-\-device\-usbids \fICURRENTSLOT\fR.auto=\fIVENDOR:PRODUCT:VERSION:BUS\fR .TP \*(T<\fB\-\-device\-usbids TYPE.SLOT=VENDOR:PRODUCT:VERSION:BUS,...\fR\*(T> Changes the vendor, product, version and bus id the device will @@ -1292,7 +1292,7 @@ is \fIVALUE\fR * axis_state. gives the number of milisecond to pass before the event is fired again (default: 5). -The value of -1 has a special meaning, it will result in +The value of \-1 has a special meaning, it will result in the REL event being fired as soon as possible (i.e. every \fItimeout\fR miliseconds). This is the recomment way for handling mouse emulation, @@ -1345,7 +1345,7 @@ handler, while \*(T<\fBKEY_A\fR\*(T> is an argument for the event handler. What kind of arguments an event handler allows depends on the event handler. .PP -There is also a shorthand form of specifing event handlers by +There is also a shorthand form of specifying event handlers by just writing: .PP .nf @@ -1465,7 +1465,7 @@ To move backwards through the sequence another key must be bound to \*(T<\fBsequence\-key\-ref\fR\*(T>. .TP \*(T<\fBexec\fR\*(T> -The exec button handler allows to launch an application +The exec button handler allows one to launch an application when the button was pressed. An example would look like this: @@ -1544,7 +1544,7 @@ is \fIVALUE\fR * axis_state. gives the number of milisecond to pass before the event is fired again (default: 5). -The value of -1 has a special meaning, it will result in +The value of \-1 has a special meaning, it will result in the REL event being fired as soon as possible (i.e. every \fItimeout\fR miliseconds). This is the recomment way for handling mouse emulation, @@ -1599,7 +1599,7 @@ when it is not pressed and in unpressed state when it is pressed. .TP \*(T<\fBauto\fR\*(T>, \*(T<\fBautofire\fR\*(T>:\fIRATE\fR:\fIDELAY\fR -The autofire filter allows to repeatatly send button +The autofire filter allows one to repeatedly send button press events when the button is held down. It takes two optional parameters: @@ -1752,7 +1752,7 @@ If you want to permanently unload it add the following line to .fi .PP Next you have to load the uinput kernel module which allows -userspace programms to create virtual input devices and the +userspace programs to create virtual input devices and the joydev module handles the \*(T<\fI/dev/input/jsX\fR\*(T> devices: .PP @@ -1772,7 +1772,7 @@ start the userspace driver with: \*(T<$ xboxdrv\*(T> .fi .PP -Or in case you don't have the neccesary rights (being in group root +Or in case you don't have the necessary rights (being in group root should often be enough) start the driver as root via: .PP .nf @@ -1799,7 +1799,7 @@ cases it is recomment to change the triggers to regular buttons via: .fi .SS "USING MULTIPLE CONTROLLER" If you want to use multiple wired controllers you need to start -multiple instances of the xboxdrv driver and append the -i +multiple instances of the xboxdrv driver and append the \-i argument to select the appropriate controller like this: .PP .nf @@ -1854,7 +1854,7 @@ can limit which gamepad gets assigned to which slot with the \*(T<\fB\-\-match\fR\*(T> option. .PP Note that xboxdrv will create the virtual uinput devices on -startup, not when a gamepad gets plugged in, this allows to +startup, not when a gamepad gets plugged in, this allows one to plug in gamepads even after a game or an application like XBMC has already been launched and still have it all function properly. @@ -1924,7 +1924,7 @@ configuration in a game is most often not helpful, since you won't see the true cause beyond endless layers of abstraction between you and the actual events. Luckily there are a few tools you can use to test, all of these are command line based and it is recomment that you get -familar with them when you want to do any more complex configuration. +familiar with them when you want to do any more complex configuration. .SS EVTEST evtest lets you read raw input events from \*(T<\fI/dev/input/eventX\fR\*(T>. The event devices are the very core of all event handling, things like the @@ -2206,7 +2206,7 @@ If you have success with that, send a patch to <\*(T>, if not, contact me too, I might be able to provide additional help. .PP -As an alternative you can also use the --device and --type option to +As an alternative you can also use the \-\-device and \-\-type option to enforce a USB device as well as a controller type an bypass any auto detection. .SS "\(dqUNKNOWN DATA: BYTES: 3 DATA: ...\(dq" @@ -2349,7 +2349,7 @@ And insert the following lines: .fi .SS "PERMANENT WORKAROUND BY DISABLING DEVICE AUTO DETECTION" A fourth workaround involved disabling the autodetection of Xorg -completly, you can do that by adding the following lines to +completely, you can do that by adding the following lines to \*(T<\fI/etc/X11/xorg.conf\fR\*(T>: .PP .nf debian/patches/series0000644000000000000000000000003212141430740012021 0ustar fix-xboxdrv-manpage.patch debian/control0000644000000000000000000000262312141430740010570 0ustar Source: xboxdrv Section: utils Priority: optional Maintainer: Debian Games Team Uploaders: Andrey Rahmatullin Build-Depends: debhelper (>= 9), scons, libusb-1.0-0-dev, libx11-dev, libboost-dev, libdbus-glib-1-dev, libudev-dev Standards-Version: 3.9.4 Homepage: http://pingus.seul.org/~grumbel/xboxdrv/ Vcs-Git: git://anonscm.debian.org/pkg-games/xboxdrv.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/xboxdrv.git;a=summary Package: xboxdrv Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: python, python-dbus Description: Xbox360 gamepad driver for the userspace This is a Xbox/Xbox360 gamepad driver for Linux that works in userspace. It is an alternative to the xpad kernel driver and has support for Xbox1 gamepads, Xbox360 USB gamepads and Xbox360 wireless gamepads. The Xbox360 guitar and some Xbox1 dancemats might work too. The Xbox 360 racing wheel is not supported, but shouldn't be to hard to add if somebody is interested. . This driver is only of interest if the xpad kernel driver doesn't work for you or if you want more configurabity. If the xpad kernel driver works for you there is no need to try this driver. . In addition to all the Xbox related stuff, the driver also supports the Thrustmaster Dual Power 3 gamepad, including rumble, which isn't supported by the normal kernel driver. debian/source/0000755000000000000000000000000012141430740010462 5ustar debian/source/format0000644000000000000000000000001412141430740011670 0ustar 3.0 (quilt) debian/xboxdrv.manpages0000644000000000000000000000002412141430740012367 0ustar debian/xboxdrvctl.1