Closed MichaelWoodc closed 1 year ago
I got this resolved. I didn't resolve it the way I would like (I can probably make changes more directly without affecting things system wide) but I just went into the controls.py file and modified everything for my controller.
I also had to run the menu inside my other program loop.
Absolutely not sure where I was going wrong, and I know it shouldn't have to be this way, but it's the way I had to solve it at the time. So, I can confirm, there's no bug here, just requires modification for my controller! Thanks!
Describe the bug Importing the controller does nothing for the menu when using my nes usb controller. When I try and assign keys, it doesn't do anything
To Reproduce simply create any menu and import the controller, use USB controller, observe nothing happens
Expected behavior I want to be able to move the selection on the menu using a USB controller
Additional context I have no problem making code that uses the controller for other things, but when I try and import it into the code I'm using for the menu, it doesn't work. The menu continues to work with the keyboard. But not the controller. See my code for getting the events from the controller here: (everything that I want to work works, just cannot get it to work with the menu in pygame_menu. I will also include the code with the working menu, but no controller functionality, under this:
Here is the code that also contains the menu, please do not hit the play button as it will jam up the menu at this time. Only hit the other ones