How do I get the next pressed key?
I've been pulling my hair out with this for a week, all my solutions fell flat, even hanging or crashing the game entirely.
Can someone more knowledgeable than me suggest a clean snippet of code that pauses the logic flow until any keypress, and returns the scan code?
Edit: The actual solution was using global variables and a signal yield.
Posted Nov 10, 2021, 9:31 AM UTC · edited
36