[fpc-pascal]Keyboard and Mouse units...
ccoyle at mail.ptd.net
Wed Jul 17 12:38:28 CEST 2002
Is there anyway to wait for either a keyboard or mouse event at the same
time without constantly polling for them in Windows? One way to make it
possible would be to make handles for NewKeyEvent and NewMouseEvent public
in the Keyboard and Mouse units so a WaitForMultipleObjects could be used.
What I am trying to do is write a console class that is independant and
efficient for both Linux and Windows. It needs to be able to process input
through both the keyboard and mouse. I would do it myself with API calls
but translating all the key codes into something that is independant of
either operating system seems like a real confusing task.
Is there something I'm missing? Anyone have any suggestions?
Thanks for any help
More information about the fpc-pascal