Discuss Scratch

110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

Hi!

I just received a wired Xbox 360 Controller for Christmas, for use with computers and other devices.

I was crawling around this here internet, and I was wondering:

Is there a Scratch Mod that allows use of, and has additional blocks for, an Xbox 360 Controller?

For example: blocks like
rightstickdirectiononcontroller1controllerbuttonleft triggeroncontroller1pressed?controllerbuttonD-Pad leftoncontroller1pressed?rumblecontroller1for1secondsXboxcontrollerinuse?amountofcontrollersconnected

Does anyone know where I can find one? Thanks!
110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

(bump)
Zeusking19
Scratcher
500+ posts

Xbox 360 Controller Support Mod?

Again, does not exist from what I can see, someone might do it, but I doubt it - a lot of people that did have the experience to carry out such a mod have left over the last 3 years.
bobbybee
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

Seems like a potential neat addition to Scratch. I'll look into writing an extension for this
Zeusking19
Scratcher
500+ posts

Xbox 360 Controller Support Mod?

bobbybee wrote:

Seems like a potential neat addition to Scratch. I'll look into writing an extension for this

Okay, perhaps there IS interest for such an extension xD
110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

bobbybee wrote:

Seems like a potential neat addition to Scratch. I'll look into writing an extension for this
Wow! That's amazing! Thank you!
bobbybee
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!
110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

bobbybee wrote:

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!
That took an hour.


110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

bobbybee wrote:

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!

How does one import a JSON extension? I can only seem to import html ones using the Offline Editor.
Thepuzzlegame
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

110Percent wrote:

How does one import a JSON extension? I can only seem to import html ones using the Offline Editor.
Go into the web console and paste the code for the extension
TheChihuahua
Scratcher
4 posts

Xbox 360 Controller Support Mod?

I hope they put this in
110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

Thepuzzlegame wrote:

110Percent wrote:

How does one import a JSON extension? I can only seem to import html ones using the Offline Editor.
Go into the web console and paste the code for the extension
Thanks!
Thepuzzlegame
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

bobbybee wrote:

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!
Awesome extension by the way bobbybee! (I've added it to the directory) Unfortunately I am not in possession of an Xbox 360 USB connector or wireless gaming receiver
110Percent
Scratcher
100+ posts

Xbox 360 Controller Support Mod?

Thepuzzlegame wrote:

bobbybee wrote:

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!
Awesome extension by the way bobbybee! (I've added it to the directory) Unfortunately I am not in possession of an Xbox 360 USB connector or wireless gaming receiver
I just got one for Christmas. I've been asking since October!

I've had 4 wireless ones the whole time, but never one of those receiver thingies.

I just got a cheap, wired controller for PC gaming.
bobbybee
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

Thepuzzlegame wrote:

bobbybee wrote:

…and done!

https://github.com/bobbybee/scratch-gamepad/blob/master/ext.js

Import that as an experimental extension (look around the forums), and it will give you a get axis and get button on _any_ supported controller. You'll need a recent version of Google Chrome, though (since like 22). Once imported, it should show up in more blocks with a yellow circle. Press any button (although in practice, only some will work), and it will turn green. At this point, you're done!

The mappings are: http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad_diagram.png

Have fun!
Awesome extension by the way bobbybee! (I've added it to the directory) Unfortunately I am not in possession of an Xbox 360 USB connector or wireless gaming receiver

Well, have a PS3 one? Generic no name brand one?
It's standard Gamepad API; any PS3-like controller should work.
bobbybee
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

Official discussion for the gamepad extension can be found at http://scratch.mit.edu/discuss/topic/76556/?page=1#post-656010
WaterDrops
New Scratcher
2 posts

Xbox 360 Controller Support Mod?

110Percent wrote:

Hi!

I just received a wired Xbox 360 Controller for Christmas, for use with computers and other devices.

I was crawling around this here internet, and I was wondering:

Is there a Scratch Mod that allows use of, and has additional blocks for, an Xbox 360 Controller?

For example: blocks like
rightstickdirectiononcontroller1controllerbuttonleft triggeroncontroller1pressed?controllerbuttonD-Pad leftoncontroller1pressed?rumblecontroller1for1secondsXboxcontrollerinuse?amountofcontrollersconnected

Does anyone know where I can find one? Thanks!
Explore is thinking of having Compatible devices like that but its not going to be soon
goldfish678
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

If you're fine with a 1.4 mod, yes, there is.
Thepuzzlegame
Scratcher
1000+ posts

Xbox 360 Controller Support Mod?

goldfish678 wrote:

If you're fine with a 1.4 mod, yes, there is.
This actually connects to a kinect, not an Xbox 360 Controller, still very cool though!
Wettining
Scratcher
500+ posts

Xbox 360 Controller Support Mod?

bump

Last edited by Wettining (Dec. 31, 2016 00:39:33)

Powered by DjangoBB