Xbox gamepad support

modulename: xpad.ko

configname: CONFIG_JOYSTICK_XPAD

Linux Kernel Configuration
└─>Device Drivers
└─>Input device support
└─>Joysticks/Gamepads
└─>Xbox gamepad support
In linux kernel since version 2.6.24 (release Date: 2008-01-24)  
Say Y here if you want to use Xbox pads with your computer.
Make sure to say Y to "Joystick support" (CONFIG_INPUT_JOYDEV)
and/or "Event interface support" (CONFIG_INPUT_EVDEV) as well.

For information about how to connect the Xbox pad to USB, see
<file:Documentation/input/devices/xpad.rst>.

To compile this driver as a module, choose M here: the
module will be called xpad.

source code: