Legacy GM [UNSOLVED] Can't keyboard_clear letters?

F

Ferrettomato

Guest
I'm trying to use keyboard_clear to clear my jump key, X, when the player uses it to select the "Resume" option in my pause menu so they don't do a little hop whenever the game is unpaused this way, but the method just won't clear it. I've tried giving it ord('X') AND ord("X"), but it won't work. Clearing a vk key (e.g. vk_right) does work in these circumstances, though. io_clear doesn't seem to cancel X either. What's going on?
 

GMWolf

aka fel666
You are much better off moving your input code into its own input handeling object.
Then just delete it when you pause, and create it once more once the game resumes.
Will require a bit of rework, but you will end up with cleaner, more flexible code.
 
Top