Hi all,
I'm creating a game in UWP. I try to have two simulatenous players from one keyboard (say one uses Arrow keys and the other one ASWD).
In UWP there doesn't seem to be any KeyPress event, but I have tried with KeyDown. The problem is that as soon as a key has been pressed, the previous key becomes forgotten. Thus, the two players compete for the same keydown events. For example, only one can move their player object at a time.
Any ideas to to make this work? Also, it would be nice to have two keys at once for diagonal moves (up and right arrow keys for example).
Thanks!
Petter
What I have tried:
I've tried the KeyDown event, but it only recognizes the last key pressed (as in a Word processor).