pegasus-frontend icon indicating copy to clipboard operation
pegasus-frontend copied to clipboard

Can't recognize analog triggers

Open kimdonga99 opened this issue 7 months ago • 3 comments

I tried to set up key mappings for a gamepad on Android. The triggers are recognized when they function as buttons, but not when they are analog. Is it possible to update it to recognize analog triggers?

kimdonga99 avatar Apr 30 '25 07:04 kimdonga99

Hi! The gamepad handling code Pegasus is built on doesn't seem to handle triggers as axes, only as buttons. I assume you can't do both a the same time, so they went with buttons. What would be your use case here?

mmatyas avatar Apr 30 '25 19:04 mmatyas

I'm using it to scroll through the game list pages. However, when both the button and analog inputs are enabled, continuous input doesn't work, so I have to flip through one page at a time. If I enable only the buttons, many games become incompatible, so I usually keep only the analog input enabled—but in that case, I can't scroll through the game list pages at all. Would it be possible to add support for assigning analog input to this function in a future update?

kimdonga99 avatar May 01 '25 06:05 kimdonga99

Not sure if possible, but I'll keep this in mind. The gamepad support on Android is based on an external module, which got somewhat outdated. I'd need to rewrite it from scratch, but that's a big larger task, so might take a while.

mmatyas avatar May 05 '25 14:05 mmatyas