Classic PC analog joysticks and gamepads

modulename: analog.ko

configname: CONFIG_JOYSTICK_ANALOG

Linux Kernel Configuration
└─>Device Drivers
└─>Input device support
└─>Joysticks/Gamepads
└─>Classic PC analog joysticks and gamepads
In linux kernel since version 2.6.20 (release Date: 2007-02-04)  
Say Y here if you have a joystick that connects to the PC
gameport. In addition to the usual PC analog joystick, this driver
supports many extensions, including joysticks with throttle control,
with rudders, additional hats and buttons compatible with CH
Flightstick Pro, ThrustMaster FCS, 6 and 8 button gamepads, or
Saitek Cyborg joysticks.

Please read the file Documentation/input/joystick.txt which
contains more information.

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

source code: