ExOK / Celeste64

A game made by the Celeste developers in a week(ish, closer to 2)
1.58k stars 125 forks source link

Controller Binding Submenu #63

Open NoelFB opened 4 months ago

NoelFB commented 4 months ago

Need a submenu to rebind controls, but it's a bit complicated.

JoshuaMadd commented 4 months ago

Am working on this. At the moment button prompts show the first assigned button or key (depending on input type). I also added an input item to Menu that shows the buttons assigned to a VirtualButton. (See images).

One weird thing I did notice is that Buttons.North turns into Buttons.Y for some reason and I'm not sure why. (See images) I made the input prompt show up by naming the image Y.png.

I'm not sure how I will do the rebinding part though. I saw foster has FirstPressed() for keyboard, but I haven't found anything like that for controller. I'm also not sure how I should handle input for switch (NotFor and OnlyFor).

This is the fork: https://github.com/JoshuaMadd/Celeste64/tree/options-submenu-3 (Very much still wip, will clean and move a lot of stuff)

afbeelding afbeelding