detecting a keystroke in console?

BlitzPlus Forums/BlitzPlus Programming/detecting a keystroke in console?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Na, nevermind. I tried it with GetKeyboardState (user32) and it didn't work. (Likely, Blitz detects keystrokes with a similar function.)

I think the only way to do it would be to write a dll yourself that sets s system-wide keyboard hook with a callback function and monitors what keys get hit while the console is in the foreground and returns the results to your program.

But that would be a big pain.