This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-01-25 05:25:42

roman64
Scratcher
Registered: 2007-03-26
Posts: 12

Joystick or gamepad input sensing

In addition to the very proprietary 'Scratch board', it would be great if a standard USB joystick or gamepad could be attached to Scratch. These devices are easily available for low cost and I suppose the usage of joysticks for selfmade games would be considered as 'cool'. 

In the 'middleages' the analog joystick input on soundcards was often used for DIY projects to sense slow analog voltages or switches. Today simple USB interface controlers are available [1] to have analog (voltage) and digital (switches) inputs for DIY hardware controler projects.

2 analog values (x-,y-axis) and a few (4?) buttons  should be supported by almost every device, so this could be implemented as minimum standard features, avoiding problems by sharing the programs.

Roman

[1] e.g. from 'Code Mercenaries', JoyWarrior series (based on Cypress microcontroler)

Offline

 

#2 2008-01-27 13:08:25

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Joystick or gamepad input sensing

I would like this too.

The 4 buttons and x/y axis should be setted by the user itself, not the creator.

Like some sort of "setup" for the keys. Elsewhere I think it would be too hard too implement, because there are much different types of yousticks/joypads.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#3 2008-01-29 04:24:49

roman64
Scratcher
Registered: 2007-03-26
Posts: 12

Re: Joystick or gamepad input sensing

OK, I would like to keep this topic alive.

During weekend I investigated a program called "Xpadder" (see www.xpadder.com). A small utility to convert joystick/gamepad input to mouse movements and keyboard events.

The userinterface is well done and quit flexible, and should be no problem for experienced gamers. We had some glitches to reload a perviously defined configuration. Neverthless, interaction with Scratch was fluent. By redirecting joystick movements e.g. to key up/down/left/right events, we were able to play a few jump&run games.  It was fun to play Scratch with gamepad and joystick.

Next step will be to test 'Glovepie'. A program with a very comprehensive feature list for input devices like MIDI, Wii controler or data gloves.

Hopefully some good ideas come out of this new possibilities.

Roman

Offline

 

#4 2010-11-25 23:50:46

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Joystick or gamepad input sensing

there is a hack in scratch to make virtiule yoystick


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&action=onlineStatus green= online gray=offline

Offline

 

#5 2010-11-26 08:53:29

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Joystick or gamepad input sensing

Despite the fact that this thread is over 2 and a half years old, I support!
There's also another application which converts joystick input to keyboard and mouse actions that I use, called JoyToKey. Not sure what's happened to it, I got an old version from somewhere.


Yawn.

Offline

 

#6 2012-03-14 00:42:52

elimantor
Scratcher
Registered: 2011-04-03
Posts: 76

Re: Joystick or gamepad input sensing

i support


scratch 2.0 forever!  big_smile

Offline

 

Board footer