yannbouteiller / vgamepad

Virtual XBox360 and DualShock4 gamepads in python
MIT License
168 stars 21 forks source link

Linux - X360 Start button is bound to the right trigger? #30

Open Com2486 opened 4 months ago

Com2486 commented 4 months ago

I rigged up some code to just press vg.XUSB_BUTTON.XUSB_GAMEPAD_START, and the controller is just pressing the right trigger, full force instead.

Linux Mint, Python 3.10.12, latest version of vgamepad

yannbouteiller commented 4 months ago

Gamepads behave strangely on linux. Would you have a real gamepad to double-check that something similar doesn't happen with the real one ?

Com2486 commented 4 months ago

Tested a couple things with real and fake gamepad. (xbox one) Gamepad plugged directly into my PC works great, start button is fine The virtual start button I got around by using 0x0080 instead of vg.XUSB_BUTTON.XUSB_GAMEPAD_START

yannbouteiller commented 4 months ago

Great, thanks! Let's maybe use that in Linux for the start button, I remember doing something weird with evdev for the start/select buttons.

This is supposed to emulate the XBox360 controller, not XBox One though. But I don't have an actual XBox 360 controller to test.

Com2486 commented 3 months ago

I could probably test with a real X360 controller at some point, but I'd have to search for the little dongle first