Strange bug with Key-Events.
Posted: Thu Sep 30, 2004 8:16 pm
Heyho.
I have a problem (suprising, don't? ^^).
'done' is a global bool-variable and it controls the main-loop. (... if (done) break; ...)
So as you can see, the program should break when someone hits ESC. But the condition in the event-receiver is also fulfilled ('done' is set to true) when I move the mouse exactly at the Y-Pos 27. (It looks like the X-Pos doesn't matter).
It's crazy, doesn't it? o__O.
Please help. Oo.
I have a problem (suprising, don't? ^^).
Code: Select all
bool OnEvent(SEvent event)
{
if (event.KeyInput.Key == KEY_ESCAPE && event.KeyInput.PressedDown) done = true;
}
So as you can see, the program should break when someone hits ESC. But the condition in the event-receiver is also fulfilled ('done' is set to true) when I move the mouse exactly at the Y-Pos 27. (It looks like the X-Pos doesn't matter).
It's crazy, doesn't it? o__O.
Please help. Oo.