Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Could physical pedals for car sims work on Scratch
- Glucosethegreat
-
Scratcher
22 posts
Could physical pedals for car sims work on Scratch
I know there is nothing built in for you to do this, but is it possible to assign keys to the pedals like example clutch = C so when you depress the clutch pedal it gives the C input? and can it be analog or only digital?
- nembence
-
Scratcher
1000+ posts
Could physical pedals for car sims work on Scratch
If you physically connect the pedals to a keyboard, it can give digital input. If you do that, make sure that the keys you select can be detected by the keyboard independently (usually there are some combinations that the keyboard can't detect, this can be different for different keyboards)
Analog input can be done by connecting the pedal to the mouse, for it to work well you'll probably need to change the OS settings so that a given amount of mouse movement always moves the cursor in the same way instead of moving further if you move it quicker
It also might be possible to make analog-ish input by making the pedal press more keys if it's pressed stronger, but that worsens the key combination problem
Analog input can be done by connecting the pedal to the mouse, for it to work well you'll probably need to change the OS settings so that a given amount of mouse movement always moves the cursor in the same way instead of moving further if you move it quicker
It also might be possible to make analog-ish input by making the pedal press more keys if it's pressed stronger, but that worsens the key combination problem
- Glucosethegreat
-
Scratcher
22 posts
Could physical pedals for car sims work on Scratch
If you physically connect the pedals to a keyboard, it can give digital input. If you do that, make sure that the keys you select can be detected by the keyboard independently (usually there are some combinations that the keyboard can't detect, this can be different for different keyboards)I meant like how people use an extension to have controller compatibility, could someone use that extension, then have the pedals correspond to a bumper (L2/R2) on a controller to use as analog pedals? only problem is there would be not room for an analog 3rd pedal.
Analog input can be done by connecting the pedal to the mouse, for it to work well you'll probably need to change the OS settings so that a given amount of mouse movement always moves the cursor in the same way instead of moving further if you move it quicker
It also might be possible to make analog-ish input by making the pedal press more keys if it's pressed stronger, but that worsens the key combination problem
- Discussion Forums
- » Questions about Scratch
-
» Could physical pedals for car sims work on Scratch