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: Mamehooker Xinput FF vs advanced  (Read 1953 times)

0 Members and 1 Guest are viewing this topic.

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Yesterday at 02:11:25 am
Mamehooker Xinput FF vs advanced
« on: April 24, 2020, 08:05:55 am »
Hi, I am toying with a recent arduino library to emulate Xbox controllers. I am testing it with the latest mamehooker and both work great.
The question (for Howard) is: what is the difference between the xinput FF and xinput FF advanced supports handled by mamehooker? I know that the advanced let you rescale the strenght of rumble, but how is it obtained? Is it a frequency modulation of some sort?
Thanks!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:27:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Mamehooker Xinput FF vs advanced
« Reply #1 on: April 24, 2020, 12:49:49 pm »
Xinput is for people that can't be bothered to set the strength of the left and right motors (because if you use outputs to control it you'll probably have to deal with math functions and buffers to get your output value in scale with xinput's strength scale).  So the regular one is just on and off.  Advanced exposes both motor strengths so you can have fun with all that math. 

It's obtained by... well setting up the api call... they are right in there.  How it does it on the hardware end probably depends upon the type of rumble motors used. 

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Yesterday at 02:11:25 am
Re: Mamehooker Xinput FF vs advanced
« Reply #2 on: April 24, 2020, 03:01:10 pm »
So, in my understanding:
- Xinput FF advanced pass an analog value, from zero to max
- Xinput FF pass a maximized value or zero (a digital, on/off value)
Is it correct?
« Last Edit: April 24, 2020, 03:02:47 pm by baritonomarchetto »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:27:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Mamehooker Xinput FF vs advanced
« Reply #3 on: April 24, 2020, 08:00:10 pm »
Yup, but it's two analog values, for the left and right motor.  If you use the function tester it should be pretty apparent. 

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Yesterday at 02:11:25 am
Re: Mamehooker Xinput FF vs advanced
« Reply #4 on: April 25, 2020, 01:27:54 am »
Yes yes: one value for the left and one for the right motor, that's clear, in both advanced and non advanced xinput.
Thanks!