Hello!
I found that something is broken with key handling in latest svn trunk changes.
The PrintScreen key never comes with PressedDown == true.
test case:open 04.Movement/main.cpp, add next lines as first lines to body of "virtual bool OnEvent(const SEvent& event)":
- cpp Code: Select all
if (event.EventType == irr::EET_KEY_INPUT_EVENT)
{
printf("\nEET_KEY_INPUT_EVENT: %s", event.KeyInput.PressedDown ? "down" : "up" );
if (event.KeyInput.Key == KEY_SNAPSHOT)
{
printf("\n\tKEY_SNAPSHOT");
}
}
This code will show "down" and "up" for all keys (Scroll Lock, Pause/Break, Num Lock, Caps Lock, Win and others) except PrintScreen/SysRq, for this key you will see only "up" and "event.KeyInput.PressedDown" will never be "true". I'm testing this in latest svn trunk rev., which is 4295, but i can say for sure, in 4288 it was working just fine
Thank you.