How do you get input from 2 keys at the same time?
e.g. forward and left movement.
Is it possible to use some kind of double case statement?
stupid keyboard input probelm
-
- Posts: 23
- Joined: Thu Jan 29, 2004 4:07 pm
- Location: Birmingham, UK
- Contact:
-
- Posts: 35
- Joined: Wed Mar 24, 2004 2:34 pm
- Location: Germany
- Contact:
I don't test it, but can't you make an if case?
if (KeyA==true && KeyB==true)
{
//event
}
This is only an idea and I don't know if that works, but I think it should works. Or do I make a mistake?
EDIT: Yes I remember now. You have to mak it so like in the Techdemo programm. You can find the source code on the Irrlicht page. It will not work with the simple code like it is shown in one of the first tutorials.
if (KeyA==true && KeyB==true)
{
//event
}
This is only an idea and I don't know if that works, but I think it should works. Or do I make a mistake?
EDIT: Yes I remember now. You have to mak it so like in the Techdemo programm. You can find the source code on the Irrlicht page. It will not work with the simple code like it is shown in one of the first tutorials.
Look at http://www.z-software.de for interesting games.