Results 1 to 1 of 1
I mean, in C++. The situation is:
The program is doing some time-consuming work and I want to press escape key to stop it. Since the UI is busy while ...
- 02-18-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 1
Is there any replacement in Linux like GetAsyncKeyState in Windows?
I mean, in C++. The situation is:
The program is doing some time-consuming work and I want to press escape key to stop it. Since the UI is busy while the work is being processed, the events generated by the UI framework can't be dispatched in to its children. Then I can't receive/use these key events.
So, I need a method like GetAsyncKeyState from the system to get the key state. Then I can know that it's time to terminate the work being processed.
Any help would be appreciated
Last edited by bbsmrdj; 02-18-2009 at 07:03 AM. Reason: Additional Information


Reply With Quote