Jump to content



0

Legacy USB Joystick help


5 replies to this topic

#1 neotokeo2001 OFFLINE  

neotokeo2001

    River Patroller

  • 2,690 posts
  • Location:Palm Beach

Posted Tue Dec 20, 2011 4:58 PM

Just got a crystal blue USB Joystick made by Legacy Engineer. How do I get it to work with Stella? I am sure that I am overlooking something obvious.

#2 neotokeo2001 OFFLINE  

neotokeo2001

    River Patroller

  • 2,690 posts
  • Location:Palm Beach

Posted Tue Dec 20, 2011 5:00 PM

Nevermind. I got it...

#3 stephena OFFLINE  

stephena

    Stargunner

  • 1,969 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Tue Dec 20, 2011 5:50 PM

I know you say you got it, but it might be useful to state what you did (so that others won't have similar questions). In my experience, there's a few things that may need to be done for Stella to use your joysticks:
  • Install drivers for the device, so that the operating system (and hence Stella) can 'see' it
  • Make sure to plug it in before starting Stella (joysticks plugged in while Stella is running won't be detected until the next program launch)
  • Check the event mapping, to map events on the joystick to appropriate actions in Stella (not always necessary, since the defaults usually work fine)
The next release of Stella (due very soon) will improve this last part in particular, since the mappings will be saved per-device, so that even if you unplug it and later plug it in again, Stella will remember its settings.

EDIT: I just wanted to add that if you're using a Stelladaptor or 2600-daptor, then steps 1 and 3 don't even apply. It's truly plug-and-play for those devices.

#4 bomberpunk OFFLINE  

bomberpunk

    Stargunner

  • 1,146 posts
  • ( UU )
  • Location:new orleans

Posted Tue Dec 20, 2011 6:49 PM

hmm, how hard would it be to add a "search for device" click-button on Stella's interface? it could just reopen the program without the user having to manually do it. or would that be a waste of coding?

Edited by bomberpunk, Tue Dec 20, 2011 6:49 PM.


#5 neotokeo2001 OFFLINE  

neotokeo2001

    River Patroller

  • 2,690 posts
  • Location:Palm Beach

Posted Tue Dec 20, 2011 7:19 PM

I had Stella opened when I plugged the joystick in. When I closed and reopened Stella it was working.

#6 stephena OFFLINE  

stephena

    Stargunner

  • 1,969 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Tue Dec 20, 2011 7:19 PM

View Postbomberpunk, on Tue Dec 20, 2011 6:49 PM, said:

hmm, how hard would it be to add a "search for device" click-button on Stella's interface? it could just reopen the program without the user having to manually do it. or would that be a waste of coding?

I don't suppose it would be very hard, since the joystick setup code is simply one function in the program that's called when Stella starts. So adding a button to call it manually would be pretty easy. The program wouldn't have to restart at all, just the specific function. But I don't know how useful it would be, to be honest. Currently, if you change certain video or audio options you have to restart Stella. So doing the same for a newly inserted joystick isn't that much trouble for the user.

The ideal solution is if Stella somehow recognized that the joystick was plugged in and automatically set it up. Unfortunately, the library that Stella uses (SDL) doesn't support this; it leaves the setup to the application. And barring the possibility of having Stella routinely 'asking' if there is a new device available, I'm not sure it can be done efficiently.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users