I've decided to try to use ReadConsoleInput() instead, so that my game will also run in Win98. I want to read the InputEvents into a buffer array that will contain 128 events, as in the below C code snippet I found on the web:
INPUT_RECORD irInBuf[128];
if (! ReadConsoleInput(...
I just think it's odd that such basic functions as GetASyncKeyState and GetKeyState can't work in Windows98. If anybody else on these boards have a chance to test my code in Win98, please do so! :-)
Well, I've now tested the compiled code on a WindowsXP machine and it works as intended. So now I know that it's my computer and not my copy of Delphi that's malfunctioning. I wonder if it's because I'm using Win98?
Is it possible to hide the mouse block cursor in a console when it is fullscreen (Alt+Enter)? I know of the ShowCursor(False), but that only hides the mouse cursor when the console is a window, and also hides the mouse even if it is outside the console window, so that's not what I'm looking for.
Thanks for the replies! :o)
I'm using Windows 98.
As to what I expect of the code, I expect it to do exactly what it did when you ran it in 2K. However, as I wrote in my initial post, when I compile and run the program, my console window freezes and doesn't react to keypresses. I've also made...
I'm fairly new to Delphi (though I've been programming in Pascal for some time) and to get to know it better, I've decided to make a small console game. The game should basically move a character across the screen according to keypressed up, down, left and right. You have to be able to press...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.