Discuss Scratch
- Discussion Forums
- » Suggestions
- » Have USB controllers added to extensions
- HelloJelloPeople
- Scratcher
61 posts
Have USB controllers added to extensions
PS wired controllers use USB, the buttons are essentially the same with some name changes. Support. BUT there is one issue. Some PlayStation controllers are wired, and they don’t use the same buttons as controllers usually have. I also think that it should be wireless, but I guess that would make the bug I stated more widespread.
- DerpyHead0
- Scratcher
1000+ posts
Have USB controllers added to extensions
why would anyone have to buy a controller for a scratch project? keyboards and mice aren't going to start exploding. However, generally, the phones are expensive as is, and people don’t want to spend the extra money for a controller that they’d only use for a Scratch project. And most controllers are pretty expensive too.
- DerpyHead0
- Scratcher
1000+ posts
Have USB controllers added to extensions
any wired or wireless xbox or playstation controllers that can connect to a computer work the exact same, you can test it out. whether a button is “square” or “A” or whatever is a bit of paint, paint doesn't change how the controllers actually work. Support. BUT there is one issue. Some PlayStation controllers are wired, and they don’t use the same buttons as controllers usually have. I also think that it should be wireless, but I guess that would make the bug I stated more widespread.
- ALLEN_VAN
- Scratcher
43 posts
Have USB controllers added to extensions
It would be very cool Support
It would be really cool
- RobotChickens
- Scratcher
500+ posts
Have USB controllers added to extensions
(#1548)It would be very cool if you stated why you support this suggestion.It would be very cool Support
It would be really cool
- Crispydogs101
- Scratcher
1000+ posts
Have USB controllers added to extensions
Is this based of a rejected feature? I think it is but at the same time not.
- Minecraft_Master3964
- Scratcher
500+ posts
Have USB controllers added to extensions
Scratch for consoles is rejected, but not USB controllers. Is this based of a rejected feature? I think it is but at the same time not.
- Crispydogs101
- Scratcher
1000+ posts
Have USB controllers added to extensions
Ah ok. Then it's fine.Scratch for consoles is rejected, but not USB controllers. Is this based of a rejected feature? I think it is but at the same time not.
- OnTheCode99
- Scratcher
500+ posts
Have USB controllers added to extensions
Support
Please say why you support
- DEEPDIVELETSGO
- New Scratcher
1 post
Have USB controllers added to extensions
you Play two-player games with Joy-Cons
- mumu245
- Scratcher
1000+ posts
Have USB controllers added to extensions
The problem with analog input is that it can't be mapped to a mouse/keyboard, and I don't want people to make controller-only projects, because many people, including me, haven't got a controller.
- DerpyHead0
- Scratcher
1000+ posts
Have USB controllers added to extensions
i don't think projects like that would be common. people can already make projects that are difficult to run in all sorts of ways, like requiring a super fast computer, keyboard with n-key rollover, etc. The problem with analog input is that it can't be mapped to a mouse/keyboard, and I don't want people to make controller-only projects, because many people, including me, haven't got a controller.
why would people want to make projects that many people can't play?
- cookieclickerer33
- Scratcher
1000+ posts
Have USB controllers added to extensions
No support because of how different all controllers are
Switch controllers don’t have analog triggers
Xbox controllers have an extra button
All these controllers have a completely different syntax so you would be to re code everything for each controller
The joy cons, like
How would those even work with the motion sensors
There’s too many logistical issues for me to be able to support, I want to but I just don’t think there’s a way ST could generalize a system that works on all controllers without simplifying it down to an nes controller
Maybe a specific controller built for scratch that works with other programs like the scratchbit?
Mainly I think people don’t realize that all controllers are coded differently and st would need to modify the blocks to work with every possible connectible controllers, they don’t all work the same
Switch controllers don’t have analog triggers
Xbox controllers have an extra button
All these controllers have a completely different syntax so you would be to re code everything for each controller
The joy cons, like
How would those even work with the motion sensors
There’s too many logistical issues for me to be able to support, I want to but I just don’t think there’s a way ST could generalize a system that works on all controllers without simplifying it down to an nes controller
Maybe a specific controller built for scratch that works with other programs like the scratchbit?
Mainly I think people don’t realize that all controllers are coded differently and st would need to modify the blocks to work with every possible connectible controllers, they don’t all work the same
Last edited by cookieclickerer33 (Jan. 30, 2023 16:43:05)
- DerpyHead0
- Scratcher
1000+ posts
Have USB controllers added to extensions
have you ever worked with controllers in a web browser? this isn't true. the controllers DO work almost exactly the same, except the joycons. xbox, ps4, and switch pro are all basically the same except for tiny differences in triggers or extra buttons. “completely different syntax” doesn't mean anything, those words don't even go together like that. Switch controllers don’t have analog triggers
Xbox controllers have an extra button
All these controllers have a completely different syntax so you would be to re code everything for each controller
The joy cons, like
How would those even work with the motion sensors
There’s too many logistical issues for me to be able to support, I want to but I just don’t think there’s a way ST could generalize a system that works on all controllers without simplifying it down to an nes controller
Maybe a specific controller built for scratch that works with other programs like the scratchbit?
Mainly I think people don’t realize that all controllers are coded differently and st would need to modify the blocks to work with every possible connectible controllers, they don’t all work the same
this doesn't need support for every controller, an easy way to do it would be to support only the main things the switch pro has, and then every other controller has it. no motion controls, no analog triggers, nothing else weird. it would still have two analog sticks, face buttons, dpad, many shoulder buttons, etc.
- cookieclickerer33
- Scratcher
1000+ posts
Have USB controllers added to extensions
Offline editorhave you ever worked with controllers in a web browser? this isn't true. the controllers DO work almost exactly the same, except the joycons. xbox, ps4, and switch pro are all basically the same except for tiny differences in triggers or extra buttons. “completely different syntax” doesn't mean anything, those words don't even go together like that. Switch controllers don’t have analog triggers
Xbox controllers have an extra button
All these controllers have a completely different syntax so you would be to re code everything for each controller
The joy cons, like
How would those even work with the motion sensors
There’s too many logistical issues for me to be able to support, I want to but I just don’t think there’s a way ST could generalize a system that works on all controllers without simplifying it down to an nes controller
Maybe a specific controller built for scratch that works with other programs like the scratchbit?
Mainly I think people don’t realize that all controllers are coded differently and st would need to modify the blocks to work with every possible connectible controllers, they don’t all work the same
this doesn't need support for every controller, an easy way to do it would be to support only the main things the switch pro has, and then every other controller has it. no motion controls, no analog triggers, nothing else weird. it would still have two analog sticks, face buttons, dpad, many shoulder buttons, etc.
Also yea, I’ve used them before in other programming languages and they work very different from eachother
Also syntax is the way that you can use the controller in an IO situation and the way that you make requests to that. The controllers have different syntaxes
- RED-001-alt
- Scratcher
1000+ posts
Have USB controllers added to extensions
You could just change the code yourself, or don't play the game. The problem with analog input is that it can't be mapped to a mouse/keyboard, and I don't want people to make controller-only projects, because many people, including me, haven't got a controller.
king of the page
Last edited by RED-001-alt (Jan. 30, 2023 17:13:02)
- TheGlassPenguin
- Scratcher
1000+ posts
Have USB controllers added to extensions
i thought syntax referred to a way the code itself is typed? not referring to input/output? Also syntax is the way that you can use the controller in an IO situation and the way that you make requests to that. The controllers have different syntaxes
i think the scratch team would implement this through the javascript gamepad api, which i have tested with an xbox controller and a generic controller, and they worked nearly identically to each other
- cookieclickerer33
- Scratcher
1000+ posts
Have USB controllers added to extensions
It’s bothi thought syntax referred to a way the code itself is typed? not referring to input/output? Also syntax is the way that you can use the controller in an IO situation and the way that you make requests to that. The controllers have different syntaxes
i think the scratch team would implement this through the javascript gamepad api, which i have tested with an xbox controller and a generic controller, and they worked nearly identically to each other
And yes the way the code is typed is different
The offline editor and editor itself isn’t coded in JavaScript
Last edited by cookieclickerer33 (Jan. 30, 2023 17:32:32)
- Minecraft_Master3964
- Scratcher
500+ posts
Have USB controllers added to extensions
The editor is in HTML5 It’s both AND Javascript, otherwise the editor wouldn't function.
And yes the way the code is typed is different
The offline editor and editor itself isn’t coded in JavaScript
Also, let's not get too off-topic here.
Last edited by Minecraft_Master3964 (Jan. 30, 2023 17:54:18)