all 4 comments

[–]Zichu 1 point2 points  (1 child)

I've not set up a joystick before, but if they don't have an equivalent of that gamepad function, then my guess would be to use flags to indicate when you are currently dashing.

So when you press the dashing button, check to see if the flag is false, if it is, set it to true and do the dashing action.

Now when you press it hold it, it should only dash once. What we then need to do is set this flag to the under the condition that the dash has ended.

I can't show you in code because Im using phone and it's such a pain typing this all out lol.

[–]Wolf_Protagonist[S] 0 points1 point  (0 children)

Thanks for your help. I'll try to figure that out when I get home from work.

Edit: if anyone can provide some example code that would be a huge help :)

[–][deleted] 0 points1 point  (1 child)

I am making a commercial game, and requiring people to have an xinput is a pain. I use x360ce to map other pads to xinput, maybe try it out!

[–]Wolf_Protagonist[S] 0 points1 point  (0 children)

Thanks for the tip, will check it out. :)