This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-07 02:52:06

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

External Game Controllers for Scratch

Okay, so I found GlovePIE (glovepie.org/glovepie.php) and had a brainstorm.

What if you could use your Wii Remotes, Xbox 360 controllers, PS3 controllers to control games in scratch? I have found a solution. Even though GlovePIE only works on windows (sadface  sad ), it means we can control games with External Game Controllers. The way this will work is that it will turn the Controllers' button presses into keyboard presses and mouse clicks, which scratch can detect. I will make a help project telling you how to connect your Wii Remotes (the only type of controller I have) and soon other controllers. I will also make a guide to making a game compatible. Do you have any suggestions?

STATUS: WIP, currently Working!

Last edited by comp500 (2013-04-07 11:10:08)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#2 2013-04-07 10:23:50

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: External Game Controllers for Scratch

Key Mappings:
Format: Key to sense for = Controller button
Pause Game Controller Script: See below

Wii Remote: (not Wii U)

Arrow Keys = D-Pad
Z = A
X = B
C = Minus
V = Plus
R = Home
F = 1
G = 2
Pause Game Controller Script = Home + Minus

Nunchuck

WASD = Joystick
E = C
Q = Z

Pause Game Controller Script:

Wii Remote: (not Wii U)

Turns on the last light at the bottom and turns off the other 3 lights. Also pauses the controls so they do not run, so you can stop them when they stop working and mess up your computer.

Other Details:

Wii Remote: (not Wii U)

If the first light is on, the script is running, and if the second is on, the nunchuck has been detected and is connected. Currently the script cannot handle multiple remotes connected at once.

Last edited by comp500 (2013-04-07 11:58:21)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

Board footer