Discuss Scratch
- Discussion Forums
- » Suggestions
- » Have USB controllers added to extensions
- creeperyeettt
- Scratcher
500+ posts
Have USB controllers added to extensions
why? No support. There is a reason why, but I can't mention it.
controllers are cool
- musicROCKS013
- Scratcher
1000+ posts
Have USB controllers added to extensions
If it’s because this is already possible using an extension, that’s a bad reason. Not every computer allows extensions because they may be unsafe. No support. There is a reason why, but I can't mention it.
- RobotChickens
- Scratcher
500+ posts
Have USB controllers added to extensions
(#1482)The extension is only basic key mapping; no rumble or analog input. Adding this to scratch will add full support for the controller feature set.
No support. There is a reason why, but I can't mention it.
Last edited by RobotChickens (Nov. 28, 2022 17:25:46)
- Little_Mittle12345
- Scratcher
100+ posts
Have USB controllers added to extensions
Resigns
What does rumble do?
when button [a v] pressed :: pen hat // buttons include A, B, X, Y, dpad, L, R, L1, R1, L2, Left stick, Right stick, and R2. (analog sticks can be clicked down on some controllers)
// this could also have blocks dropped in as an input, just like you can for key pressed blocks.
// when dropping in blocks, it could take the button number ids, meaning that even unsupported controllers could work (to an extent)
when [left v] stick pulled [right v]:: pen hat //happens when a stick gets pulled. Drop downs Include anywhere, right, up, left, and down.
when [L2 v] distance [= v] (100) % :: pen hat // input options are triggers and all stick movement (shown on next blocks)
// this block could also have blocks dropped in and take axis ids, just like the button blocks.
[normal v] rumble for (1) secs until done :: pen stack // different rumble strengths
[normal v] rumble for (1) secs :: pen stack // doesn't pause script to rumble
[normal v] rumble :: pen stack // just keeps rumbling until stopped
stop rumble :: pen stack
<button [a v] pressed? :: pen> // (can drop in blocks, like above)
([left v] stick x ::pen)
([left v] stick y :: pen)
([left v] stick direction :: pen)
([left v] stick distance :: pen) // how far the stick is from the center
([L2 v] distance :: pen) // how far the trigger is pushed down (can drop in blocks, like above)
when player [1 v] connected :: pen hatInstead of ::extension, do ::pen.
when player [1 v] disconnected :: pen hat
<player [1 v] connected? :: pen>
What does rumble do?
Last edited by Little_Mittle12345 (Nov. 29, 2022 21:44:28)
- An0therRand0mC0der
- Scratcher
1000+ posts
Have USB controllers added to extensions
(#1482)You're allowed to use the word “extensions”, just not the specific name of it. You can tell us.
No support. There is a reason why, but I can't mention it.
- Knightbot63
- Scratcher
1000+ posts
Have USB controllers added to extensions
Rumble makes the controller vibrate. What does rumble do?
- creeperyeettt
- Scratcher
500+ posts
Have USB controllers added to extensions
some people should know all contllers suppor r2 length like joycons Resignswhen button [a v] pressed :: pen hat // buttons include A, B, X, Y, dpad, L, R, L1, R1, L2, Left stick, Right stick, and R2. (analog sticks can be clicked down on some controllers)
// this could also have blocks dropped in as an input, just like you can for key pressed blocks.
// when dropping in blocks, it could take the button number ids, meaning that even unsupported controllers could work (to an extent)
when [left v] stick pulled [right v]:: pen hat //happens when a stick gets pulled. Drop downs Include anywhere, right, up, left, and down.
when [L2 v] distance [= v] (100) % :: pen hat // input options are triggers and all stick movement (shown on next blocks)
// this block could also have blocks dropped in and take axis ids, just like the button blocks.
[normal v] rumble for (1) secs until done :: pen stack // different rumble strengths
[normal v] rumble for (1) secs :: pen stack // doesn't pause script to rumble
[normal v] rumble :: pen stack // just keeps rumbling until stopped
stop rumble :: pen stack
<button [a v] pressed? :: pen> // (can drop in blocks, like above)
([left v] stick x ::pen)
([left v] stick y :: pen)
([left v] stick direction :: pen)
([left v] stick distance :: pen) // how far the stick is from the center
([L2 v] distance :: pen) // how far the trigger is pushed down (can drop in blocks, like above)when player [1 v] connected :: pen hatInstead of ::extension, do ::pen.
when player [1 v] disconnected :: pen hat
<player [1 v] connected? :: pen>
What does rumble do?
and some contllers have abxy moved around
playstation doesnt even have them
Last edited by creeperyeettt (Nov. 30, 2022 18:39:35)
- RobotChickens
- Scratcher
500+ posts
Have USB controllers added to extensions
(#1491)If I'm not mistaken, PlayStation controllers Send out the same button messages as any other controller. However, as (you're right) they use shapes instead, there needs to be a generic way of handling button selection in blocks.some people should know all contllers suppor r2 length like joycons -snip-
and some contllers have abxy moved around
playstation doesnt even have them
- musicROCKS013
- Scratcher
1000+ posts
Have USB controllers added to extensions
Top button (x), Left button (y), Right button (a), Bottom Button (b) there needs to be a generic way of handling button selection in blocks.
letters based on how a nintendo switch controller looks
Edit: or, there could be a picture of a generic controller and you click the button you want to use? Then no names are needed! But then it might be hard to tell afterwards what button is selected in the block
Last edited by musicROCKS013 (Dec. 1, 2022 23:40:10)
- HelloJelloPeople
- Scratcher
61 posts
Have USB controllers added to extensions
Could use a small graphic showing hollow circles, with the selected one filled in. The same can be said about the D-pad, but with a PS-like D-pad.Top button (x), Left button (y), Right button (a), Bottom Button (b) there needs to be a generic way of handling button selection in blocks.
letters based on how a nintendo switch controller looks
Edit: or, there could be a picture of a generic controller and you click the button you want to use? Then no names are needed! But then it might be hard to tell afterwards what button is selected in the block
- creeperyeettt
- Scratcher
500+ posts
Have USB controllers added to extensions
i dont like the ps controller its diffrent and weird
- cookieclickerer33
- Scratcher
1000+ posts
Have USB controllers added to extensions
Just have a menu showing a generic controller and then when you press one of the buttons it selects that button
Kinda like game builder garage
Kinda like game builder garage
- musicROCKS013
- Scratcher
1000+ posts
Have USB controllers added to extensions
Yeah, but imagine an image of a controller on the inside of this block: Could use a small graphic showing hollow circles, with the selected one filled in.
<key [ v] pressed?>That's not a lot of space, so it may still be hard to tell.
- HelloJelloPeople
- Scratcher
61 posts
Have USB controllers added to extensions
Not the whole controller, just the buttons. It would still be small, but it could still be used. Alternatively, they could use direction input or direction D-pad (direction being the button direction from center, input ABXY) like soYeah, but imagine an image of a controller on the inside of this block: Could use a small graphic showing hollow circles, with the selected one filled in.<key [ v] pressed?>That's not a lot of space, so it may still be hard to tell.
<button [direction v] [input type v] pressed?>the input type is input or D-pad
Example:
<button [up v] [input v] pressed?>The above block would be Xbox-Y, Nintendo-X, PS-Triangle
Last edited by HelloJelloPeople (Dec. 2, 2022 14:56:29)
- creeperyeettt
- Scratcher
500+ posts
Have USB controllers added to extensions
it could just say button#Yeah, but imagine an image of a controller on the inside of this block: Could use a small graphic showing hollow circles, with the selected one filled in.<key [ v] pressed?>That's not a lot of space, so it may still be hard to tell.
then when you click it the entire controller appears
- musicROCKS013
- Scratcher
1000+ posts
Have USB controllers added to extensions
That's a good idea! Then it doesn't have to conform to any controller type! it could just say button#
then when you click it the entire controller appears
- scratchcode1_2_3
- Scratcher
1000+ posts
Have USB controllers added to extensions
(#1482)You're allowed to use the word “extensions”, just not the specific name of it. You can tell us.
No support. There is a reason why, but I can't mention it.
Oh, ok.
(#1482)The extension is only basic key mapping; no rumble or analog input. Adding this to scratch will add full support for the controller feature set.
No support. There is a reason why, but I can't mention it.
Well, yeah, it would be better, but I think that is kind of enough.
If it’s because this is already possible using an extension, that’s a bad reason. Not every computer allows extensions because they may be unsafe. No support. There is a reason why, but I can't mention it.
How is that extension unsafe? It was literally made by scratchers, and even though bad scratchers exist, I have been using it for like 2 years already, and nothing has happened. Sure, some schools block every single extension, but that is so that students can focus, or other extensions that are bad/harmful.
- musicROCKS013
- Scratcher
1000+ posts
Have USB controllers added to extensions
that extension unsafe? It was literally made by scratchers, and even though bad scratchers exist, I have been using it for like 2 years already, and nothing has happened. Sure, some schools block every single extension, but that is so that students can focus, or other extensions that are bad/harmful.It's just because they could become unsafe. The ST has no control over it, so if someone suddenly decided to make it steal all or your data or something, Scratch doesn't want to be responsible for that. At a moment's notice all could go awry. Read the ST announcement about it in the announcements forum. How is
- RobotChickens
- Scratcher
500+ posts
Have USB controllers added to extensions
Just use a keyboard then. The main part of this extension is analog input and rumble because that's the stuff a normal keyboard Can't do. The ST is only going to make extensions that will add features to Scratch. I don't think making controller-shaped keyboards counts as a substantial change.full support for the controller feature set.The extension is only basic key mapping; no rumble or analog input. Adding this to scratch will add
Well, yeah, it would be better, but I think that is kind of enough.
- Minecraft_Master3964
- Scratcher
500+ posts
Have USB controllers added to extensions
Or like the micro:bit menu! Very useful idea!! Just have a menu showing a generic controller and then when you press one of the buttons it selects that button
Kinda like game builder garage