I've been googling this for a while and it feels like none of the answers people suggest work...How do I totally clear out keyboard input? I'm not sure what to call this, but in game maker there's a function io_clear() that achieves this, does Ruby or RPG maker have the same thing?
For example, I have a minigame that says "press space to start, and when playing press space to quit" and when the player presses space to start, as soon as it starts the game is still registering the same "space" input and immediately quits the game. I've tried putting "wait" commands in but for some reason even that doesn't always work. Is there a simple function that just, forgets the players current button press until they release, and press again?
For example, I have a minigame that says "press space to start, and when playing press space to quit" and when the player presses space to start, as soon as it starts the game is still registering the same "space" input and immediately quits the game. I've tried putting "wait" commands in but for some reason even that doesn't always work. Is there a simple function that just, forgets the players current button press until they release, and press again?