Best way to handle Keyboard and Gamepad controls?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I'd like to give my game both options for control input, but I don't want players to be able to use BOTH at the same time. What's the best way to disable the keyboard when a gamepad is in use and vice versa? (Using the ControlX and Joystick2 objects).

  • the joystick2 has is a pad connected feature? check that to determine what to use. i have an example coming soon, which does all this included. what you do is have a group for joypad, and a group for keys. before the groups; always deactivate them both. then check if a pad is connected - and activate the pad group, otherwise activate the keys group.

  • [MENTION=8318]N64Mario[/MENTION]: I did just so that my app had native gamepad controls without the need for Joy2Key. As for whether others do this... Not sure on that one.

    [MENTION=5150]danjo[/MENTION]: That works perfectly. Thank you.

    Edited once, last by MasochisticGamer: Because Reasons (June 16, 2018 at 1:17 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!