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: RGB LED, indicate whether game is 4-way or 8-way?  (Read 2089 times)

0 Members and 1 Guest are viewing this topic.

GernBlanston

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:July 11, 2016, 05:53:06 am
  • I want to build my own arcade controls!
RGB LED, indicate whether game is 4-way or 8-way?
« on: September 07, 2013, 08:23:00 pm »
I feel like this should be rather simple but I'm still new to this, especially the LEDBlinky config, and I haven't been able to find an answer.

I'm finally setup with two hollow-shaft ServoStiks with RGBs in each.

It's probably unnecessary (and wouldn't mean anything to anyone but me) but I'd like to know if this is possible anyway, or something similar perhaps...  Can I control the RGBs in the joysticks to change color based on whether a game is 4-way or 8-way? I know that the ServoStik handles the restrictor switching already but I'd like to play with the RGBs in the joysticks too based on this value.

Can this be done?  Preferably with MaLa?

This is going in one of OND's Metropolis cabs, by the way. I did a 180 on the buttons and am waiting on a couple of shipments now. Again. Lordy.

Thanks,
Gern

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: RGB LED, indicate whether game is 4-way or 8-way?
« Reply #1 on: September 07, 2013, 11:16:42 pm »
I can think of a couple of ways you might be able to do this. One option would be to edit the colors.ini file and change the joystick color individually for each game. This would obviously be a lot of work but has the advantage that you could specify the color on a game by game basis.

The other option would be to specify the joystick RGBs in the Device/Port Input file as single LEDs. For example, if the joystick RGB uses ports 1 (red), 2 (green), and 3 (blue), rather than set the LED Type as RGB-Red, RGB-Green, and RGB-Blue, you would set the LED Type to Single for all three ports and assign a different Port Label to each (like Joy1Red, Joy1Green, and Joy1Blue). Then you could set the keycode for each port individually for the desired joystick type (4-way or 8-way). If you set port 1 (the red wire for the RGB in this example) to JOY8WAY, then the joystick would light up red for all 8-way games. Since you have three distinct colors (red/green/blue), you could distinctly identify three types of joysticks. If you only want to identify 4-way and 8-way, then you could combine two of the colors for one of the joystick types - like 8-way could be red/green (yellow) and 4-way could be blue.
Robots will kill you.



Arcade Addiction

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5165
  • Last login:August 23, 2025, 09:14:19 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: RGB LED, indicate whether game is 4-way or 8-way?
« Reply #2 on: September 08, 2013, 01:22:17 am »
I think you could use JoyChoose for this too.
Just have JoyChoose call a bat file or a script that turns on the LEDWiz outputs.
(JoyChoose is a Mala Plugin, available on the Mala site).

GernBlanston

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:July 11, 2016, 05:53:06 am
  • I want to build my own arcade controls!
Re: RGB LED, indicate whether game is 4-way or 8-way?
« Reply #3 on: September 08, 2013, 05:07:05 am »
You guys are the best. These are exactly the types of responses that I hoped to get. Thanks much and I hope to bring a positive report (video) back soon.
« Last Edit: September 08, 2013, 09:53:40 am by GernBlanston »