|
From: John P. <joh...@o2...> - 2015-03-29 22:11:27
|
On 18/03/2015 16:21, Eli Zaretskii wrote: >> Date: Tue, 17 Mar 2015 23:13:02 +0000 >> From: John Pote <joh...@o2...> >> >> Does anyone know how I might be able to read the state of the PC's >> keyboard in a program compiled by MinGW so I can get key down and key up >> events or just read the state of the keyboard so I can determine key >> down and key up events. > I think you want GetKeyState, GetAsyncKeyState, and friends. > > If you are talking about a console program, then ReadConsoleInput > might also be relevant. > Thanks for the reply. Compiler found and linked the function without needing to do anything so I'll be able to do what I want to now. Many thanks, John |