Disconnect Gamepad on Keyboard use?

Get help using Construct 2

Post » Sat Apr 18, 2015 9:46 pm

Currently, when the game has a game pad connected, you can't use the Keyboard unless you physically unplug the game controller.

Is there a good way to tell the game that if a Game pad is connected and the Keyboard is used (probably on any key pressed) to ignore input from the controller?
B
4
Posts: 78
Reputation: 606

Post » Thu Apr 23, 2015 1:05 am

Put the gamepad code into a group and call it "Gamepad Group"

Write your condition like " on any key pressed" and create an event using the "System Object" and use "Set Group Active" behavior. Enter the name of the Group and set to "Deactivate"
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Sat Apr 25, 2015 3:33 pm

Awesome, I will give that a try, thanks!
B
4
Posts: 78
Reputation: 606


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests