Gamepad+ is an extension for Scratch mods that uses the Gamepad API to create a close to universal extension for most modern controllers, and input devices in the usecase of Warpdrive App Development.
Known Issues:
- Button Mapping may be inconsistent on 3rd party gamepads.
- Analog Trigger support is hit or miss. Supported Analog Triggers includes Xbox 360, Dualshock 3+4, Dualsense, Most Xbox One gamepads, and Most 3rd Party Gamepads.
The Focus Gamepad block is local Per Sprite and Per Clone. You must focus a gamepad(s) before calling any input code in every sprite you have input code in.
This block allows you to choose which connected gamepad listens for your input code. It also accepts both public and private variables in the input. This allows for multiple gamepads to use the same input code.
There's several ways to allow multiple gamepads to use the same input code, but I suggest having a "Controls" Sprite create a clone for every connected gamepad, then assign each clone with a private variable matching a corresponding gamepad.
From there, you can add controls as normal: