Hello! I wonder whether anyone can help me -
I would like to write a simple loop with the ability to 'poll' the keyboard for key presses, so that if say the Down Arrow is pressed, something in the code will respond (I guess using a Case statement).
I have found some code that appears to work in exe form but that my version of Delphi will not compile - John Ayres Delphi Rocks (asteriods clone) - the code uses 'outdated' keyboard HOOKS.
How can I access the Windows handles to check if any keys are being pressed?
Also if I'm right in my thinking am I limited to just detecting one keypress at a time?
As you might have guessed the loop is intended for simple games/simulators w/o Direct X (for now).