Added support for UKSM (Ultra Kernel Samepage Merging) Fixed support for NTFS external devices. This version is for the Xbox One controller. Enabled the XPAD kernel driver (xbox gamepads). the one linked is the long term support, other are a bit more recent. */ #include #include #include #include #include #include #include #include #include #define XPAD_PKT_LEN 64 /* * xbox d-pads should map to buttons, as is required for DDR pads * but we map them to axes when possible to simplify things */ #define MAP_DPAD_TO_BUTTONS (1 dev if ( ! ( xpad -> mapping & MAP_STICKS_TO_NULL )) /* * xpadone_process_packet * *Ĝompletes a request by converting the data into events for the * input subsystem. before messing with upstream dkms modules I would try to use ELRepo kernels. Go ahead and load the module by running the command modprobe xpad. SPDX-License-Identifier: GPL-2.0-or-later /* * X-Box gamepad driver * * Copyright (c) 2002 Marko Friedemann * 2004 Oliver Schwartz, * Steven Toth, * Franz Lehner, * Ivan Hawkes * 2005 Dominic Cerquetti * 2006 Adam Buchbinder * 2007 Jan Kratochvil * 2010 Christoph Fritz * * This driver is based on: * - information from * - the iForce driver drivers/char/joystick/iforce.c * - the skeleton-driver drivers/usb/usb-skeleton.c * - Xbox 360 information * - Xbox One information * * Thanks to: * - ITO Takayuki for providing essential xpad information on his website * - Vojtech Pavlik - iforce driver / input subsystem * - Greg Kroah-Hartman - usb-skeleton driver * - XBOX Linux project - extra USB id's * - Pekka Pöyry (quantus) - Xbox One controller reverse engineering * * TODO: * - fine tune axes (especially trigger axes) * - fix "analog" buttons (reported as digital now) * - get rumble working * - need USB IDs for other dance pads * * History: * * - 0.0.1 : first version, just said "XBOX HID controller" * * - 0.0.2 : basic working version * - all axes and 9 of the 10 buttons work (german InterAct device) * - the black button does not work * * - 0.0.3 : rework by Vojtech Pavlik * - indentation fixes * - usb + input init sequence fixes * * - 0.0.4 : minor changes, merge with Vojtech's v0.0.3 * - verified the lack of HID and report descriptors * - verified that ALL buttons WORK * - fixed d-pad to axes mapping * * - 0.0.5 : simplified d-pad handling * * - 0.0.6 : DDR pad support * - borrowed from the XBOX linux kernel * - USB id's for commonly used dance pads are present * - dance pads will map D-PAD to buttons, not axes * - pass the module paramater 'dpad_to_buttons' to force * the D-PAD to map to buttons if your pad is not detected * * Later changes can be tracked in SCM. First, become root and change to the directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |