I'm trying to make a platformer game with both keyboard and xbox controller controls, but I'm having a little problem with the controller and with the simplest thing of all - jumping.
First of all I disabled deafult jump controls in application properties so everything is controlled by events, then I set jumping two ways. First in MouseKeyboard, on key pressed condition, which works fine - when certain button is pressed sprite is jumping at a given height and when I press and hold the button the sprite will jump only once. When it comes to xbox controller there is a problem because it can only have one condition - on control is down, which makes that the sprite is flying up constantly when certain button is pressed and hold.
So there is my question - is there any way to make xbox controller recognize only single button press even if the button is hold, like on key pressed condition?
Here is screenshot of my events because I can't post link to .cap file yet
Thanks in advance :)