There's something wrong with the software, maybe it's not its fault, I don't know.
Moving 8 directions with the keyboard doesn't work 100%, at least not for me.
Here's what you can do:
Move up
Move down
Move left
Move right
Move up + left or reverse (top left diagonal)
Move up + right or reverse (diagonal at top right)
Does not work:
Move down + Left or reverse (bottom-left diagonal)
Move down + Right or reverse (diagonal at bottom right)
To be reviewed.
- Another remark: it would be nice to add full support for joysticks.
so you don't have to code like you do for the keyboard, that would be a big plus.
- Be able to return the value of the joystick angle (the angle at which the left or right joystick is currently positioned). (This could be used, for example, to move a character at the same angle as the joystick, another idea would be to be able to move the character at a speed proportional to the inclination of the joystick, the more it's inclined the faster the character moves).
- I don't know if it's possible to do this, but also for the left and right triggers, to know the pressing value, a bit like for joysticks.