Tag Archives: win32api

How to read one non-blocking key press in Ruby

During the development of a simple command line game in Ruby, I wanted to check if the player has pressed a given key in a non-blocking and buffered way. That is: If no key was pressed, don’t wait for one … Continue reading

Howto, Ruby , , , , , , , , , , , , , , , , , , , , ,