Topic Information

Controller Imputs by Epic_Studios in Advanced Topics

Posts: 46

1: Epic_Studios wrote at 9:26:04 AM 3/4/2014289788
Right now, I am making a sprite plugin for controller inputs.
This means that you can use Gamecube, PS2, PS3, Xbox 360, and Xbox controllers to play games on scratch.
This means players will get to use triggers (LEFT AND RIGHT) ABYX Buttons (Gamecube, Xbox 360, Xbox) and shape buttons (PS2, PS3)

How to connect controllers to computer:

Gamecube Controller:

Step 1: Connect Gamecube controller to the Gamecube USB Adapter
Step 2: Plug the usb adapter into the usb slot in the computer
Step 3: Wait for the GC light of the upper left of the project screen say GC: ON
Step 4: !Start Playing!


PS2 Controller:

Step 1: Plug PS2 controller into the usb slot of your computer
Step 2: Wait for the PS2 image to say PS2: ON
Step 3: !Start Playing!

Other Steps for controllers coming soon!

NOTE: Some projects on scratch might crash with the controllers (Mostly Xbox controller)
for that, the sprite will keep the graphic effects clear.

2: PullJosh wrote at 10:55:45 AM 3/4/2014289836
Wow, sounds really cool! Any way to hook up this? I've got a wii u, so I wouldn't be able to use this.
3: ImagineIt wrote at 8:17:11 PM 3/4/2014290166
Why not use the latest controllers instead, or also?
Otherwise, this is a cool idea.
4: Epic_Studios wrote at 7:59:16 PM 18/4/2014302192
For the latest 8th generation inputs, we will work hard and try to make use of the wii u gamepad controller, xbox one controller, and ps4 controller!
5: whizzer wrote at 8:39:14 AM 19/4/2014302593
Yay! Other people want Wii U Pro Controller support so I don't need to ask for it! This is why I love the Scratch community.

EDIT: There should be Steam controller support when it comes out - although, judging by the original post, it seems like it's buttons only for now.
6: CodyTechery wrote at 2:30:11 PM 19/4/2014302737
The Wii U GamePad would be relatively useless for use with a computer; there's no way to pair it with the computer, and even if there was, the touchscreen would be unusable.
7: Vel0ceD3v wrote at 4:18:27 AM 6/12/2014601130
I think you could integrate a program called “BetterDS3” into Scratch, that way, it could also detect DS3s. Or we could use the DS3 to act like a keyboard, and assign special characters to those, like, [ for Square, { for Circle, etc. Then we only need Scratch to recognize those characters as DS3 inputs…
8: Epic_Studios wrote at 9:20:15 AM 6/12/2014601372
There is a way you can hook up a wii u pro controller and a wii mote. Just download wjoy
9: StriderTheDog wrote at 9:03:06 PM 25/5/20151051048

Epic_Studios wrote:

There is a way you can hook up a wii u pro controller and a wii mote. Just download wjoy
what is wjoy?
10: Cypher56 wrote at 8:29:14 PM 26/5/20151053694
Wow! This seems cool! But I can't try it, because I don't have an USB adapter… :P
11: Orange_Scratch_Cat wrote at 3:29:35 PM 10/4/20161912575
There should be a ps3 input block(s) like this:

<[left v] stick facing [up v]?>
<[X v] button pressed?>
12: minenice55 wrote at 1:27:14 AM 22/9/20162215558
You can also connect a WII U Gamepad with “U send Mii”.
13: Dangerousadventurous wrote at 5:14:23 PM 7/4/20172545920
how can you connect a xbox 360 controller to scratch?
14: Ninjatintin wrote at 4:33:42 PM 22/1/20182967577
when [a v] button pressed :: #32DA35 :: hat
when [up v] of [left v] joystick pulled :: #32DA35 :: hat
15: Lucas_Souza wrote at 2:01:07 PM 4/2/20182982031
when green flag clicked
if (left d-pad pressed) then
move left
end

when green flag clicked
if (right d-pad pressed) then
move right
end

when green flag clicked
if (a button pressed) then
jump
end

when green flag clicked
if ((b button pressed)and(powerup 2 on)) then
do (powerup 2)
end

This is my first test of these controller inputs for Scratch!
If you use PlayStation controllers, here's 2 other commands for the shape buttons below!

when green flag clicked
if (X button pressed) then
jump
end

when green flag clicked
if ((circle button pressed)and(powerup 2 on)) then
do (powerup 2)
end

If you see any errors in these commands, another test will be made…
16: eevee6411 wrote at 11:32:29 PM 20/4/20183071644
this would be great
17: CatIsFluffy wrote at 6:30:23 PM 23/4/20183074905
For PS controllers, you should map the shape buttons to letter buttons, like X->A, O->B, Square->X, and Triangle->Y (using the Xbox button names)
18: jmonster5 wrote at 2:44:06 PM 15/5/20183105337

Epic_Studios wrote:

Right now, I am making a sprite plugin for controller inputs.
This means that you can use Gamecube, PS2, PS3, Xbox 360, and Xbox controllers to play games on scratch.
This means players will get to use triggers (LEFT AND RIGHT) ABYX Buttons (Gamecube, Xbox 360, Xbox) and shape buttons (PS2, PS3)

How to connect controllers to computer:

Gamecube Controller:

Step 1: Connect Gamecube controller to the Gamecube USB Adapter
Step 2: Plug the usb adapter into the usb slot in the computer
Step 3: Wait for the GC light of the upper left of the project screen say GC: ON
Step 4: !Start Playing!


PS2 Controller:

Step 1: Plug PS2 controller into the usb slot of your computer
Step 2: Wait for the PS2 image to say PS2: ON
Step 3: !Start Playing!

Other Steps for controllers coming soon!

NOTE: Some projects on scratch might crash with the controllers (Mostly Xbox controller)
for that, the sprite will keep the graphic effects clear.

This is great! I have a post about some of the issues and possible solutions with implementing controller support here: https://scratch.mit.edu/discuss/post/3075414/
19: jmonster5 wrote at 2:49:03 PM 15/5/20183105344

Epic_Studios wrote:

Right now, I am making a sprite plugin for controller inputs.
This means that you can use Gamecube, PS2, PS3, Xbox 360, and Xbox controllers to play games on scratch.
This means players will get to use triggers (LEFT AND RIGHT) ABYX Buttons (Gamecube, Xbox 360, Xbox) and shape buttons (PS2, PS3)

How to connect controllers to computer:

Gamecube Controller:

Step 1: Connect Gamecube controller to the Gamecube USB Adapter
Step 2: Plug the usb adapter into the usb slot in the computer
Step 3: Wait for the GC light of the upper left of the project screen say GC: ON
Step 4: !Start Playing!


PS2 Controller:

Step 1: Plug PS2 controller into the usb slot of your computer
Step 2: Wait for the PS2 image to say PS2: ON
Step 3: !Start Playing!

Other Steps for controllers coming soon!

NOTE: Some projects on scratch might crash with the controllers (Mostly Xbox controller)
for that, the sprite will keep the graphic effects clear.

I believe it would be a better idea to make a universal driver for controllers instead of making individual ones. Also, do you yet understand JS and the HTML5 Gamepad API? Because you will need to know that to code a plugin for Scratch 3.
20: Meowswish55 wrote at 9:55:11 PM 2/8/20183201240
This is an amazing idea and I would like to use it in one of my projects to eventually port my game onto xbox using PhosphorusWrapper. How is it going?