Open Snayff opened 4 years ago
I am trying to ensure gamepad support as core part of my game. Do you think this is something you are likely to include in a future release? If not I will see what I can cobble together.
This is something I'd like to look into definitely. The focus has mainly been on mouse controls up until now.
I'll probably want to figure out what the current state of the art is for games that support both mouse and control pad interactions and I suspect it is all tied up with how to handle things like tabbing around between elements neatly. Ideally I'd like to be able to move back and forth between keyboard/mouse and control pad smoothly.
This issue is related to #101.
Is your feature request related to a problem? Please describe. Currently, to utilise a gamepad with pygame_gui I need to control the mouse cursor with the gamepad and use the mouse functionality.
Describe the solution you'd like Easier methods of rotating selection of ui_elements, perhaps adding existing ui_elements to a controller group? This would allow moving from element to element without the need to scroll around.
Then, being able to interact with the selected element based on gamepad input, event if it is by creation of events e.g. SHOW_DROPDOWN or HOVER_BUTTON.
This will obviously need some finessing to allow moving in the right way (from element to element not window to window, or vice versa) but fundamentally I think opening up a method of selection that hooks into the hover, tool tip, press etc. already available will carry a lot of the work.