Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Set joystick order?  (Read 4111 times)

0 Members and 1 Guest are viewing this topic.

Kayden

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:February 17, 2023, 07:20:44 pm
  • Oh crap! Is it suppose to spark like that?
Set joystick order?
« on: April 08, 2009, 08:46:38 pm »
I configured all my games with my two u360s but then figured out I could hook up my xbox steering wheel as a usb device.

Unfortunately, when I start mame, the steeringwheel is now assigned as joystick one.  Stick one is 2 and 2 is 3.  =(

Is there a way to set the order of USB joysticks?  My u360 1 is set to my preferred device in windows game controllers, but Mame doesn't really care.

I know I could just remap them, but then I'd have the opposite problem as I don't want this wheel hooked up all the time.  =\  So then stick one would be set up as the wheel, stick two would be set up as stick one and then there'd be no way to control P2 as that was seen as stick 3 which is now 2.

***********
I tried plugging them in one at a time and setting them all to preferred device and then I plugged them in in the order I wanted them, but that didn't work.

Per this, but with 3 devices:

1) Unplug all devices from system
2) Plug-in the Mad Catz Andretti Wheel
3) Run the game controllers control panel
4) Click the "Advanced" button and set the wheel as the preferred device
5) Unplug the wheel
6) Plug-in the USB Gravis GamePad Pro
7) Run the game controllers control panel
8) Click the "Advanced" button and set the USB GamePad Pro as the preferred
device
9) Unplug the Gravis GamePad Pro
10) Now plug-in the wheel, followed by the USB GamePad Pro.

By setting both devices to preferred, we actually clear their previous ID
settings. By replugging them in the desired order, i.e. wheel then GamePad Pro, the wheel gets ID1 and the GamePad Pro gets ID2.
« Last Edit: April 08, 2009, 09:06:55 pm by Kayden »

Spacedueler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:January 24, 2017, 04:24:45 pm
Re: Set joystick order?
« Reply #1 on: April 09, 2009, 02:16:59 am »
Sorry I don't have a way to re-assign the device ID of your wheels, but the solution for me was a U-HID and wiring the potentiometers directly to it, and removing the wheel/joystick circuit boards.

I was having the same problem while planning a new modular control panel. For me the larger issue was pedals, but it's similar to your situation since the pedals consist of a potentiometer wired to a usb circuit board that is seen by Windows as an HID device or Joystick.

In my mock-up panel I could be using 3, 2, 1, or 0 pedals (3 pedals for three player Super Sprint),  an analog stick, or 270 degree wheel at any given time. The solution was to use the U-HID, configure inputs as Analog Axises and wire the pins to a RJ45 socket on the back side of the control panel. Then I hacked into the pedals and 270 wheel and wired the potentiometers direct to a rj45 plug with some cat5 wire. When Windows boots, the U-HID is always found whether the pedals or wheel are plugged into their RJ45 socket or not.

GP Wiz or J pac may be able to do this for you as well??.... So far the U-HID has been fine with calibration even though the potentiometers aren't always connected. I don't think it was planned for it to be used this way, but it seems to work...


Kayden

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:February 17, 2023, 07:20:44 pm
  • Oh crap! Is it suppose to spark like that?
Re: Set joystick order?
« Reply #2 on: April 09, 2009, 09:19:15 am »
Wow.... $80 is a bit much for "fixing" something that already works.  :(

I'm curious though, they'd both be seen as USB devices, how does that affect the order?

Spacedueler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:January 24, 2017, 04:24:45 pm
Re: Set joystick order?
« Reply #3 on: April 09, 2009, 11:23:44 am »
Wow.... $80 is a bit much for "fixing" something that already works.

Lucky for me I discovered this was going to be a problem in my modular control panel in the planning stages - so the U-HID was the perfect choice as my main control board for my button inputs as well.

I'm curious though, they'd both be seen as USB devices, how does that affect the order?

Through trial and error I discover that every device has its own built in ID, and when Windows boot and installs the devices they are given the same Windows "number" on every boot. So if I have the U-HID and my Logitec Attack 3 stick plugged in all the time, the UHID comes up as JOY 2 and the Logitec is JOY 1 in mame on every boot. I can swap out the different pedals at any time. If I happen to boot the computer without any pedals plugged in, the UHID is still connected and still holds its JOY 2 number. So after playing Pacman for awhile if I decide to play Sprint, I plug in the pedals with the rj45 connections and everything works as if the pedals were plugged in from the start.

Same thing goes for my steering wheels. They are all mouse hack optical wheels. The mouse circuit boards are mounted in the control panel and always connected whether the wheel is plugged in or not. On every boot I have 6 mice load (including the trackballs). When I want to play a racing game I plug the wheel into a rj45 that goes to a mouse circuit board. When I start the game the wheel works as if it was plugged in from the beginning.

Like I said, I was able to plan this from the start of my control panel. I don't have the quick answer I'm sure you are looking for

Kayden

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:February 17, 2023, 07:20:44 pm
  • Oh crap! Is it suppose to spark like that?
Re: Set joystick order?
« Reply #4 on: April 09, 2009, 12:26:57 pm »
Oh, I was misunderstanding.  The device is always plugged in, you just remove the interfacing device (wheel/pedals).

Yea, unfortunately, that won't work for me at this point.  I haven't tried booting, adding the wheel and then playing yet.  If that does work, I'll just leave the wheel unplugged and rig a usb port on my CP so I can add the wheel when needed.