gamepads - Logitech Rumblepad 2

Problème pour le faire fonctionner avec les jeux Unity3D.

$ lsusb
Bus 001 Device 004: ID 046d:c218 Logitech, Inc. F510 Gamepad [DirectInput Mode]
$ evdev-joystick --l
/dev/input/by-id/usb-Logitech_Logitech_RumblePad_2_USB-event-joystick

xboxdrv

Emuler un pad xbox est souvent nécessaire pour les jeux utilisant Unity3D depuis la réécriture de son input system qui ne prend en charge que les pads ‘bien connus’.

On apprends les codes des boutons grâce à evtest.

sudo xboxdrv --evdev /dev/input/event14 --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --evdev-keymap BTN_THUMB=a,BTN_THUMB2=b,BTN_TRIGGER=x,BTN_TOP=y,BTN_TOP2=lt,BTN_PINKIE=rt,BTN_BASE=tl,BTN_BASE2=tr --mimic-xpad

xboxdrv nous fait patienter 1 minute avant d’activer les événements du rumblepad, voir ce bug : https://github.com/xboxdrv/xboxdrv/issues/144 Corrigé chez Retropie, pas chez Debian.

Spiritfarer

Galère avec les manettes…

Malheureusement, ça fonctionne encore mal si le jeu utilise Rewired.

Scénario 1 : bas et gauche ne fonctionnent pas

https://steamcommunity.com/app/972660/discussions/0/3145133067889299621/ For some reason, no matter what I do I can’t set the “Move left” and “Move down” keys when i try to configure the controller. The down/left keys of the pad work on any other button, but if i try to set the “move left” command and use any key, it stays blank no matter what. Even if i use keys that could be set to other functions (like button one/two/three/four which were set just fine to other functions

Scénario 2 : L1-R2 ne fonctionnent pas

xboxdrv –evdev /dev/input/event4 –evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_Z=y2,ABS_RZ=x2 –evdev-keymap BTN_THUMB=a,BTN_THUMB2=b,BTN_TRIGGER=x,BTN_TOP=y,BTN_TOP2=lt,BTN_PINKIE=rt,BTN_BASE=tl,BTN_BASE2=tr,BTN_BASE3=select,BTN_BASE4=start –axismap -Y1=Y1,-Y2=Y2 –four-way-restrictor –mimic-xpad

les touches L1/L2/R1/R2 ne fonctionnaient pas, et il semble inverser Carré et Triangle (West et North). C’est du moins ce qu’on observe avec evtest sur le périphérique émulé, à confirmer : tandis que le log interne au logiciel indique sournoisement que les contrôles sont bons, sans que cela ne soit effectif.

Voir aussi


gamepads : Logitech Rumblepad 2, Microsoft Xbox Series S|X Controller