Linux Kernel Configuration
└─>Device Drivers
└─>Input device support
In linux kernel since version 2.6.20 (release Date: 2007-02-04)  
If you have a joystick, 6dof controller, gamepad, steering wheel,
weapon control system or something like that you can say Y here
and the list of supported devices will be displayed. This option
doesn't affect the kernel.

Please read the file <file:Documentation/input/joydev/joystick.rst> which
contains more information.