[fpc-pascal]QT - mouse and keyboard simult.
Florian Klaempfl
Florian.Klaempfl at gmx.de
Fri Oct 6 10:20:50 CEST 2000
Martin Hankovec wrote:
>
> Hello,
> I try put the question once again :-)))
>
> Please, does anybody know, how to use keyboard and mouse under
> win32 console window simultaneously ? If I test api mouse function,
> it works (taking it from FPC examples). The example with keyboard works
> too. But both wait for an event and then writes it's parameters. How can I
> "in one loop" test keyboard, mouse and do anything else ? While using
> API mouse, the CRT "readkey" and "keypressed" are not working at all :-(
> (or are working very bad).
>
> Thanks for advice
Either you use the API units completly or you write your own mouse/keyboard
routines. Then the only (good) solution (afaik) do this is to run a seperate
thread which waits for an event and write it to buffers which can be read
from the main program (the API uses more or less the same solution).
More information about the fpc-pascal
mailing list