Hi,
is it possible to clear the key input buffer ???
I have a window (non Irrlicht) that handles some key inputs and a Irrlicht window.
If I press the tab key in the non Irrlicht window I activate the FPS camera mode and set the Irrlicht window as active (with API function).
The Irrlicht's event receiver acts to the tab key, too, and disables the FPS camera mode.
But if I switch from the non Irrlicht window to the Irrlicht window the tab key is still in the key buffer and so Irrlicht switches back immadiatly !!!!!
So I whant to clear the key buffer after switching to the Irrlicht window...
If it's not possible with Irrlicht, maybe there is another way, maybe with the windows API ???
thx, Acki
.
clear the key buffer ???
clear the key buffer ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
I'm not sure to understand your question, but try
Code: Select all
fflush (stdin);
No, that doesn't work...
But now I'm using a flag...
If I switch to Irrlicht, I set the flag to true and if the flag is trur, Irrlicht doesn't act on the tab key...
CU, Acki
But now I'm using a flag...
If I switch to Irrlicht, I set the flag to true and if the flag is trur, Irrlicht doesn't act on the tab key...
CU, Acki
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java