Skip to content

Warpdrive-console/Gamepad-Plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Gamepad+

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.

Docs

Focus Gamepad

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.

focus

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.

gamead setupi

From there, you can add controls as normal:

movement code

About

The gamepad extension written for Scratch mods in the use of Warpdrive development, and app porting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published