Man, Iām such a jackass!
I tried using a convoluted restricted method of alternative controls only to have it fail on me at the end. When I discovered that you can āSet Keyā on the Joypad object, thatās when everything clicked! Now Iāve made a system that might help later objectives for this pet project of mine: a custom input menu!
This was originally meant to be part of a much bigger update, but since this method was quick to execute, I might as well throw this port a bone before I make my next big hurdle.
How does it work?
Simple, but I hope you have some way to left-click! After the title screen pops up and the title glimmers, click on the game. There, it jumps to the control menu. Hovering over the input keys will highlight the input text, clicking on the input key will make it flash: thatās when you press any key to change the input. It works when the key chosen is shown on the preferred input. Change any input, and then click on CONFIRM when you finish: click on CANCEL if you think you have wasted your time. WARNING: Inputs will not be saved after Refreshing the page!
To those of you who have a keyboard with a numpad that has those arrow keys on them, I would prefer changing the FIRE Keys to Numpad 1, 2, and 3. On the menu, it will display it as END, ā , and PGD. This will give you a much more comfortable experience than the default!
RANT:
HTML just cannot give me a break! So, you may notice that you cannot immediately change your input once itās highlighted. Thatās because the HTML conversion made it so clicking on the input also counts as a key-press which will immediately change it to a fixed key. This doesnāt happen as an executable, it only happens when ported as an HTML file. To solve this, I had to delay the input so they wouldnāt overlap with the click. Hope it doesnāt give too much of a damper.
Conclusion
As I said before, Iām going to be using this system for any further projects especially in regards to Newgrounds. If you have any concerns with it, feel free to message me about it! Iāll fix it Sunday, Sundayā¦ Somedayā¦