Lawstorant / boxflat

Boxflat for Moza Racing. Control your Moza gear settings!
GNU General Public License v3.0
26 stars 3 forks source link

H-Pattern working in windows but not picking up any inputs in Linux (CachyOS) #4

Closed markhagemann closed 1 month ago

markhagemann commented 1 month ago

Hey, thanks heaps for this package, it's really exciting to see.

Everything has worked flawlessly so far except I'm not able to get any h-pattern inputs working. I initially thought it may have just been a problem with Dirt Rally 2 but even in Euro Truck Simulator 2 it wasn't picking up any of the inputs either.

The H-Pattern is connected to the back of the Moza R5 base (like the pedals and handbrake which work fine). Steam input disabled in controller settings. I have no issues with FFB.

I can see that in device_defines.xml there isn't anything for moza though.

Wondering if you have any advice / debugging tips? Happy to move this into a discussion rather than an issue.

Thanks!

Lawstorant commented 1 month ago

Hi! Thanks for using this project! It's really fulfilling to see it helps anyone besides me 😄

Back to H-Pattern though. Boxflat is only made to read and change Moza settings. It's not a driver. FFB is handled by universal-pidff and input is just Linux. Moza devices are plain USB HID devices.

Your shifter sadly won't work through the base at the moment. Linux has a limitation of 80 buttons for HID joysticks and h-pattern buttons are 112+.

To make it work you need to connect it through USB and use protopedal to force proton to pick it up. If you don't want to configure protopedal yourself, I made protopedal-community-configs. It'll set it up so h-pattern will automatically show up in games running through proton.

Lawstorant commented 1 month ago

I'm actively pushing for linux maintainers to pick up my patch that increases this button limit, but it'll come in 6.11 at the earliest. For now, pprotopedal is a great piece of software.

I've made AUR packages for both, so you only have to install community-configs-for-protopedal-git. It depends on protopedal.

markhagemann commented 1 month ago

Thank you! That does indeed work great. The 3 scripts from community-configs-for-protopedal-git seemed to have given it a weird name but I assume that's fairly easy to update.

image

I'll be patiently waiting for 6.11 then but very glad to have this for now.

Lawstorant commented 1 month ago

@markhagemann hi! I just wanted to let you know that today I fixed this issue in the driver. I added manual button handling and now our driver handles up to 160 buttons.

Moza only has 128, so everything should just work, without the need for hacks. You can uninstall protopedal and use your shifter through the base itself :)

markhagemann commented 3 weeks ago

That is awesome to know! I have been moving house so I've not been able to test any of your recent updates but hopefully this weekend I can :) thanks again for all the hard work.