View Full Version : Gamepad USB
Ho acquistato un gamepad USB della trust, dai log noto che viene riconosciuto, ma per utilzzarlo ad esempio con MAME? Qual è il dispositivo su cui viene montato e che posso fornire ai programmi?
Mi rispondo da solo...
USB Joystick and Gamepad support
In the kernel configuration stage, you need to turn on USB Human Interface Device (HID) support in USB support and Joystick support in Input core support. Perform the normal kernel rebuild and installation steps. If you are installing as modules, you need to load the hid.o, input.o and joydev.o modules.
You need to set up a device node entry for the joystick. It is customary to create the entries for USB device in the /dev/input/ directory. You can use the following commands to create four device nodes, although there is no reason why you can not use more: mknod /dev/input/js0 c 13 0
mknod /dev/input/js1 c 13 1
mknod /dev/input/js2 c 13 2
mknod /dev/input/js3 c 13 3
If you plug in a gamepad or joystick and cat /dev/input/js0 you should see some bizarre looking characters as you move the stick or click any of the buttons.
You should now be able to use the USB joystick or gamepad with any of the normal games or other joystick compatible applications.
Per la cronaca ho probato i moduli hid e joydev, è stato creato il device /dev/js0 e tutto funge alla perfezione ;)
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.