key press

Global Long Key Capture - Capture long presses

RWindowGroup::CaptureKey function, demonstrated earlier does not allow for capturing long key presses. There is a similar function RWindowGroup::CaptureLongKey, however you cannot just use it instead the CaptureKey.

The trick is to call CaptureLongKey after the CaptureKey. The attached compilable example is an ExeDll that can be run on Emulator with the help of ExeLauncher

Global Key Capture - capture key presses globally

You can capture key presses globally, when your application is not on screen or even from the invisible exe silently running in the background.

This demo is an ExeDll program that creates an invisible window and makes the Window server pass all the Left key presses to the program. You can run it on the emulator with the help of ExeLauncher

Syndicate content