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
Site News

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


  

Author Topic: Setting a ffb controller's button to vibrate  (Read 840 times)

0 Members and 1 Guest are viewing this topic.

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Setting a ffb controller's button to vibrate
« on: August 09, 2018, 01:11:56 am »
Hi all, 

Does anyone know of a way, perhaps a program or utility that allows you to set any PC force-feedback/rumble controller button to vibrate constantly when you press and hold it? I've tried XPadder and set the button to rumble when pressed but it stops vibrating once I start a Mame game (works outside of Mame).

Thanks!

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #1 on: September 03, 2018, 01:20:21 am »
I can do this if you still want it?

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #2 on: September 03, 2018, 02:42:56 am »
I can do this if you still want it?
That'd be great Boomslang. Thanks so much!

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Online Online
  • Posts: 8445
  • ...
Re: Setting a ffb controller's button to vibrate
« Reply #3 on: September 03, 2018, 08:45:34 am »
Does anyone know of a way, perhaps a program or utility that allows you to set any PC force-feedback/rumble controller button to vibrate constantly when you press and hold it?

I'm not sure if it fits your application, but I once did this for a gun shaker motor by using a solid state relay.  (into an old school gamport connector)
I can't seem to find the original thread, but I found a pic of the diagram in another thread.


codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #4 on: September 03, 2018, 02:26:03 pm »
Thanks Badmouth. Just a bit of info on my project: I have a T2 gun and the pots are using a Microsoft Dual Strike hack and the buttons using a Logitech Rumblepad. The gun does not have the original recoil motors so I placed the Rumblepad's vibration parts (round thingies) into the gun. They're rather mild compared to the arcade recoil but effective enough for me. So I want the gun to vibrate when the buttons are pressed. Unfortunately it's not nearly as cool as the original recoil or how the recoil slows down when the gun is overheating in game.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6951
  • 2013 UCA Awardee
Re: Setting a ffb controller's button to vibrate
« Reply #5 on: September 03, 2018, 08:51:18 pm »
I can't seem to find the original thread, but I found a pic of the diagram in another thread.
To backtrace an image uploaded here, plug the attachment number into forum search.  i.e. attach=167262
Code: [Select]
[img]http://forum.arcadecontrols.com/index.php?action=dlattach;topic=103207.0;attach=167262;image[/img]
Search results include posts containing "attach=167262" where the image is embedded, but don't include the post where the file was originally uploaded.

The oldest post that search kicked back was this one on December 14, 2010.

Last edit on that post was June 02, 2011.

Checking your posts from June 02, 2011 led to the post here where you uploaded the improved diagram.   :cheers:


Scott
« Last Edit: September 03, 2018, 08:53:13 pm by PL1 »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16805
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Setting a ffb controller's button to vibrate
« Reply #6 on: September 03, 2018, 09:03:32 pm »
For the record, I personally hooked up most of the outputs for positional gun games in mame.  If you wanted to buy the mechanisms to repair the guns you could get a lot of use out of them.  It would work for your rumble setup as well since mamehooker supports xinput and directx gamepad rumble. 

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #7 on: September 04, 2018, 12:10:06 am »
For the record, I personally hooked up most of the outputs for positional gun games in mame.  If you wanted to buy the mechanisms to repair the guns you could get a lot of use out of them.  It would work for your rumble setup as well since mamehooker supports xinput and directx gamepad rumble.
Thank you Howard. I will be sure to try out your mamehooker. And yes, it may be worthwhile to bring the guns to their original state.

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #8 on: September 04, 2018, 02:11:17 am »
Ok here ya go

Same instructions as with other FFB Arcade Plugins basically

Ive set options in ini to rumble either Both Motors, Left Motor or Right Motor

set one of those to 1 in ini for how you want it

RumbleStrength for strength (you can go higher then 100 if you want it crazy)
RumbleLength for how long you want it to rumble if you hold button down (if you want it forever if holding button then make this high, otherwise you can lower if you want it to only rumble for a second etc)

As soon as you release buttons then rumble will stop

Ive setup for 10 buttons in ini and defaulted them buttons 0-9 but if you want to know the button number of device you are using, turn on ShowButtonNumbersForSetup and press buttons and it will popup a box telling you the number, replace numbers in ini and then disable ShowButtonNumbersForSetup

Place files in mame folder and run mame. Now exit out of mame

check log.txt for your device GUID number and place into FFBPlugin.ini

Now turn off logging in FFBPlugin.ini and you should be good to go


If app you want to use this on doesn't respond to dinput8.dll then you can rename to either opengl32.dll,d3d9.dll,d3d11.dll or xinput1_3.dll which should cover most games


*EDIT*

Just be aware atm that as soon as you release any of the buttons in ini then rumble will stop even if you are holding a certain button down etc. If this is gonna be a problem then ill have to modify it a bit, i properly shouldn't of defaulted the 10 buttons like that lol

« Last Edit: September 04, 2018, 02:24:05 am by Boomslang »

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #9 on: September 05, 2018, 12:13:33 am »
Boomslang, you're too kind. This is great; the only thing I can't seem to alter is that the rumble does not stop after releasing the buttons. It continues for a few seconds, no matter how low I set the length. I set it to 0, 1, etc.

Also, I confirmed I need buttons 5 and 6. Do i simply put button5=1 And button6=1? That seemed to work correctly.

Thanks again for your help and file!

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #10 on: September 05, 2018, 12:37:00 am »
hm the rumble continues? wierd. On my xbox one controller it stops everytime i release button immediately

but no you would just make the ini like

Button1=5
Button2=6
Button3=99
Button4=99
Button5=99
Button6=99
Button7=99
Button8=99
Button9=99
Button10=99


I'm just putting 99 on the others as i think if you either delete them or just make it like Button5=  then it defaults to button 0 which might be something on your controller etc


99 would be a button that would never get used etc so would just make those other buttons do nothing basically


if you could try it out with ini setup correctly and if rumble still continues after you release button then ill have to modify something. What controller are you using etc?

*Edit*

just tested on xbox 360 controller too and rumble stops everytime i release button on that too, i'm just using the default ini as it comes from zip (added guid tho)
« Last Edit: September 05, 2018, 12:44:12 am by Boomslang »

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #11 on: September 05, 2018, 10:05:26 pm »
Unfortunately, same issue. It's approximately 5 seconds of rumble after I release the button.

I have two Logitech Wingman Rumblepad's.

Thanks again 

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #12 on: September 05, 2018, 10:43:32 pm »
I wonder if logitech wingmans are a bit more simple and can't recieve multiple signals at once or something


add to ini

FeedbackLength=


and try some different numbers to see if that changes the 5 second run time although

try something like

FeedbackLength=50
RumbleLength=50

this should just make a short rumble when you press button even if you hold button down etc





codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #13 on: September 05, 2018, 11:57:42 pm »
Thanks but no luck. There s no change in behavior in any way, including rumble time or strength. I believe you're correct about it being a Wingman issue. It's a rather old controller. Perhaps I can find a newer ffb controller to hack and use your utility. Thanks again for everything!

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #14 on: September 06, 2018, 12:16:11 am »
Sorry it doesn't work right

It works here fine and its coded to only work for that rumblelength or until button is released so I dont get why it would continue rumbling for 5 seconds each time

Makes no sense

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16805
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Setting a ffb controller's button to vibrate
« Reply #15 on: September 06, 2018, 12:34:45 am »
Do you have the duration set to infinite, or a set time?  When an effect is toggled like that for whatever reason it works more reliably (for me at least) when the duration is set to infinite. 

Boomslang

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 711
  • I want to build my own arcade controls!
Re: Setting a ffb controller's button to vibrate
« Reply #16 on: September 06, 2018, 01:50:42 am »
It's set to a customizable time that can be modified via ini so anyone can modify it

Unfortunately it works fine for me on my controllers so I'm unsure why it works different for him

try this just incase

removed Rumblelength etc and just made it infinite and also removed all buttons except for 2 options etc


« Last Edit: September 06, 2018, 02:08:29 am by Boomslang »

codeena

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 191
  • This site is cool
Re: Setting a ffb controller's button to vibrate
« Reply #17 on: September 07, 2018, 11:06:54 pm »
Hi Boomslang, still no go but thank you! I will eventually find another controller for my T2 guns :)

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31