ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.57k stars 360 forks source link

Support more controller buttons on Switch #8851

Open mundodisco8 opened 1 week ago

mundodisco8 commented 1 week ago

Preliminary checks

Describe the problem requiring a solution

First of all, thanks for your work!

I am playing on switch and have to deal with the "problem" of a mouse-first interface in a controller-first system. That's on me :D. I was trying to speed things up assigning controller buttons to different actions, and I realised that on switch, the only buttons that you can assign are the four main buttons (A, B, Y, Z), the plus and minus buttons and two of the four shoulder buttons (L and R, but not ZL and ZR). The four digital direction buttons, ZL, ZR and the analog clickers are not linked to a keyboard key. Furthermore, the Z button is assigned to ESC and pressing it triggers the Quit Game dialog (probably not the best use of one of the 8 available buttons).

I don't know if this is the case in other systems that rely on controllers.

I was wondering if it would be possible to get those other buttons linked to keyboard keys so we can assign them to different actions.

Describe the possible solution

I was wondering if it would be possible to get those other buttons linked to keyboard keys so we can assign them to different actions.

Additional info

No response

ihhub commented 6 days ago

Hi @mundodisco8 , we've recently started updating the code related to event handling so we have in plans to expand the support of buttons for Switch platform.