Discuss Scratch

venyanwarrior
Scratcher
1000+ posts

Have USB controllers added to extensions

I have an Xbox One, and I regularly use the controllers to play computer games on my mac with a driver. I think that controllers could work if the extension thinks that the Right stick is the arrow keys, and the Left stick is wasd. For PS4 It's even easier because it uses Bluetooth. no driver needed.
I would be happy if someone wanted to work with me on this.

If you're seeing this signature, that means I've come out of my social anxiety hole.

Also, I edit the Scratch Wiki. Check it out sometime it's cool I guess.
kenny2scratch
Scratcher
500+ posts

Have USB controllers added to extensions

You mean supporting the extra buttons on games console controllers? That seems like a cool idea, but keep in mind that people with controllers can simply map the buttons to keyboard keys.

post brought to you by the preview links bug and previously the uploads site bug. 看一下中文 Scratch 維基想參加?請參考這頁
Join the Scratch Wiki!
Made by Scratchers, for Scratchers, since December 6, 2008

I-Iz-A-Litten
Scratcher
1000+ posts

Have USB controllers added to extensions

Support, it would give my universal controller a use.

Last edited by I-Iz-A-Litten (Feb. 2, 2018 17:22:56)


under penalty of law this signature is not to be removed except by the consumer
Botcho_Otkho
Scratcher
1000+ posts

Have USB controllers added to extensions

Support,it would introduce a new way of playing games.

I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
SArpnt
Scratcher
17 posts

Have USB controllers added to extensions

venyanwarrior wrote:

I have an Xbox One, and I regularly use the controllers to play computer games on my mac with a driver. I think that controllers could work if the extension thinks that the Right stick is the arrow keys, and the Left stick is wasd. For PS4 It's even easier because it uses Bluetooth. no driver needed.
I would be happy if someone wanted to work with me on this.

a small problem with these is that i want analog support too. the only analog input on scratch is the mouse, which allows for 2 axis of movement. an xbox controller has 10 axis of movement. also, i would prefer if the buttons on a controller and keyboard were separate. finally, i don't believe most people on scratch would be able to properly set up joy2key.

when I see [thing v] :: hat :: events
if <(thing :: sensing) is upgradable?> then
set [old thing v] to (thing :: sensing)
upgrade (thing :: sensing) :: control
if <(awesomeness of (thing :: sensing) :: operators) < (awesomeness of (old thing) :: operators)> then
go back :: control
if <not<(thing :: sensing) = (old thing)>> then
GO BACK :: control
end
end
else
look for [things v] :: motion
end
Meowlit12
Scratcher
100+ posts

Have USB controllers added to extensions

SArpnt wrote:

venyanwarrior wrote:

-snip-
a small problem with these is that i want analog support too. the only analog input on scratch is the mouse, which allows for 2 axis of movement. an xbox controller has 10 axis of movement. also, i would prefer if the buttons on a controller and keyboard were separate. finally, i don't believe most people on scratch would be able to properly set up joy2key.
Also, JoytoKey requires a license after a trial period.


LordOfMuffins
Scratcher
100+ posts

Have USB controllers added to extensions

What about Bluetooth controllers? The Nintendo Switch Joy-cons are Bluetooth and can be used with emulators, phones, computers, etc.


The Furry Fandom
Please consider checking out my animation account, @TheKiingOfMuffins
SArpnt
Scratcher
17 posts

Have USB controllers added to extensions

LordOfMuffins wrote:

What about Bluetooth controllers? The Nintendo Switch Joy-cons are Bluetooth and can be used with emulators, phones, computers, etc.
this would depend if scratch would be able to detect it. iif someone can show that it would be possible in html (the programming language for scratch 3) then i'll update the post.

when I see [thing v] :: hat :: events
if <(thing :: sensing) is upgradable?> then
set [old thing v] to (thing :: sensing)
upgrade (thing :: sensing) :: control
if <(awesomeness of (thing :: sensing) :: operators) < (awesomeness of (old thing) :: operators)> then
go back :: control
if <not<(thing :: sensing) = (old thing)>> then
GO BACK :: control
end
end
else
look for [things v] :: motion
end
SArpnt
Scratcher
17 posts

Have USB controllers added to extensions

bummmmmmmmmmmmmmmmmmnmnmnnnmnmnmnmmmnmnmnmnmnnmnmnmnmp

when I see [thing v] :: hat :: events
if <(thing :: sensing) is upgradable?> then
set [old thing v] to (thing :: sensing)
upgrade (thing :: sensing) :: control
if <(awesomeness of (thing :: sensing) :: operators) < (awesomeness of (old thing) :: operators)> then
go back :: control
if <not<(thing :: sensing) = (old thing)>> then
GO BACK :: control
end
end
else
look for [things v] :: motion
end
BunnyMan64
Scratcher
8 posts

Have USB controllers added to extensions

It is interesting though I not sure if Scratch will add it. Semi-support. As much as I love using a controller, I not sure if all will work well on it but it depends on how well Scratch Team added that feature otherwise I think it is for ScratchX.
Monniasza_spzoo
Scratcher
100+ posts

Have USB controllers added to extensions

There should be universal extension for controllers:

when button [1 v] on controller [1 v] pressed :: extension hat
<button (1 v) on controller (1 v) pressed? :: extension>
(axis (1 v) on controller (1 v) :: extension)

Last edited by Monniasza_spzoo (April 21, 2019 14:51:02)

Luvexina
Scratcher
500+ posts

Have USB controllers added to extensions

Support! This will be much easier to add in Scratch 3.0 because it uses HTML5 and JavaScript.

Support trans youth, in Texas and across the globe!
openPoll
Scratcher
1000+ posts

Have USB controllers added to extensions

Whilst I support, because of all the reasons above, it probably won't be added since the Scratch Team would have to get licenses from the companies owning the patents for the controllers to use them in Scratch. And knowing how money-hungry the companies (Sony, Microsoft, Nintendo) producing the most wanted controllers (Xbox 360 and One controllers, DUALSHOCK™ 4 controllers, Joy-Con™ and Nintendo Switch Pro Controller), they would not give permission because people could emulate their games on Scratch for FREE.

It is a shame.

Moi? Whaddya wahnt from moi?

——

Inactive Scratcher • making memes wen??? • define defineI have Robux >:)1,000+ hours on Splatoon 2 • 250+ hours on Pokémon White • 100+ hours on MinecraftAn 8 bit remix I love • i have lots game • too lazy to make rainbows • still a proud Windows 7 user
AFNNetworkK12
Scratcher
1000+ posts

Have USB controllers added to extensions

Monniasza_spzoo wrote:

There should be universal extension for controllers:

when button [1 v] on controller [1 v] pressed :: extension hat
<button (1 v) on controller (1 v) pressed? :: extension>
(axis (1 v) on controller (1 v) :: extension)
oops

Last edited by AFNNetworkK12 (April 21, 2019 19:32:06)


AFN!


| Okay | Hobbyist | Introvert | Active | OK! |


HELLO
openPoll
Scratcher
1000+ posts

Have USB controllers added to extensions

AFNNetworkK12 wrote:

Monniasza_spzoo wrote:

There should be universal extension for controllers:

when button [1 v] on controller [1 v] pressed :: extension hat
<button (1 v) on controller (1 v) pressed? :: extension>
(axis (1 v) on controller (1 v) :: extension)
Please don't necropost.
Please note that necroposting does not exist on Suggestions of it is the first topic to make that suggestion.

Moi? Whaddya wahnt from moi?

——

Inactive Scratcher • making memes wen??? • define defineI have Robux >:)1,000+ hours on Splatoon 2 • 250+ hours on Pokémon White • 100+ hours on MinecraftAn 8 bit remix I love • i have lots game • too lazy to make rainbows • still a proud Windows 7 user
AFNNetworkK12
Scratcher
1000+ posts

Have USB controllers added to extensions

openPoll wrote:

AFNNetworkK12 wrote:

Monniasza_spzoo wrote:

There should be universal extension for controllers:

when button [1 v] on controller [1 v] pressed :: extension hat
<button (1 v) on controller (1 v) pressed? :: extension>
(axis (1 v) on controller (1 v) :: extension)
Please don't necropost.
Please note that necroposting does not exist on Suggestions of it is the first topic to make that suggestion.
kk.

AFN!


| Okay | Hobbyist | Introvert | Active | OK! |


HELLO
AirWay1
Scratcher
100+ posts

Have USB controllers added to extensions

Controllers are very good for games, as they have multiple buttons, and are easy to grasp.

Please add!
Truck11111
Scratcher
1000+ posts

Have USB controllers added to extensions

Support.

openPoll wrote:

Whilst I support, because of all the reasons above, it probably won't be added since the Scratch Team would have to get licenses from the companies owning the patents for the controllers to use them in Scratch. And knowing how money-hungry the companies (Sony, Microsoft, Nintendo) producing the most wanted controllers (Xbox 360 and One controllers, DUALSHOCK™ 4 controllers, Joy-Con™ and Nintendo Switch Pro Controller), they would not give permission because people could emulate their games on Scratch for FREE.

It is a shame.
What if Scratch made their own controllers?

sufferin' succotash!
openPoll
Scratcher
1000+ posts

Have USB controllers added to extensions

Truck11111 wrote:

Support.

openPoll wrote:

Whilst I support, because of all the reasons above, it probably won't be added since the Scratch Team would have to get licenses from the companies owning the patents for the controllers to use them in Scratch. And knowing how money-hungry the companies (Sony, Microsoft, Nintendo) producing the most wanted controllers (Xbox 360 and One controllers, DUALSHOCK™ 4 controllers, Joy-Con™ and Nintendo Switch Pro Controller), they would not give permission because people could emulate their games on Scratch for FREE.

It is a shame.
What if Scratch made their own controllers?
I… Was just thinking about that. They work at MIT, so they already have a team to do that there
But how would they mass produce them?

Moi? Whaddya wahnt from moi?

——

Inactive Scratcher • making memes wen??? • define defineI have Robux >:)1,000+ hours on Splatoon 2 • 250+ hours on Pokémon White • 100+ hours on MinecraftAn 8 bit remix I love • i have lots game • too lazy to make rainbows • still a proud Windows 7 user
epicRedHot
Scratcher
500+ posts

Have USB controllers added to extensions

Truck11111 wrote:

Support.

openPoll wrote:

Whilst I support, because of all the reasons above, it probably won't be added since the Scratch Team would have to get licenses from the companies owning the patents for the controllers to use them in Scratch. And knowing how money-hungry the companies (Sony, Microsoft, Nintendo) producing the most wanted controllers (Xbox 360 and One controllers, DUALSHOCK™ 4 controllers, Joy-Con™ and Nintendo Switch Pro Controller), they would not give permission because people could emulate their games on Scratch for FREE.

It is a shame.
What if Scratch made their own controllers?
While I'm not to sure of the legality of Scratch “ports” (note that I'm using the term very loosely here, as making near 1:1 recreations of even the simplest NES games requires far more knowledge than the majority of Scratch users have), there should be no reason to require specific “Scratch Controllers” for this extension to be added, as over 99% of the industry's main controllers use the same input types, being XInput and DInput.

I occasionally do things.

Powered by DjangoBB