ExOK / Celeste64

A game made by the Celeste developers in a week(ish, closer to 2)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Controller Binding Submenu

NoelFB opened this issue · comments

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

  • Need to be able to clear controls
  • Must not be allowed to back out of the menu until you either cancel changes, or confirm changes that are valid
  • Certain combinations aren't valid (ex. Pause/Confirm/Cancel can't overlap, Menu Up/Down can't overlap, Menu Left/Right can't overlap, etc).
  • Need to add input prompts for all possible button configurations (pull in all of Kenny's input prompts, look them up based on first binding).

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