multiple key press

How can I allow the user to press multiple keys at ones.

Right now you can press a key, but as soon as another key is pressed, then the first one doesn’t do anything.

How ???

when you accept a key event, set a flag indicating the key is down. Then accept key-up to set the flag back off. Perform methods based off of the flags that you set, not of the actual key events.

In theory it makes sence.

Can you post some code ?

InputState in direct/src/controls is a good exemple.

When you watch a key, it will log whether the key is pressed or not.

Then , when you want to know if a key is pressed or not , you just do
inputState.isSet(“name of the key”). It wil return 1 if yes…