Build Your Own Arcade Controls Forum
Main => Driving & Racing Cabinets => Topic started by: baritonomarchetto 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!
-
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.
-
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?
-
Yup, but it's two analog values, for the left and right motor. If you use the function tester it should be pretty apparent.
-
Yes yes: one value for the left and one for the right motor, that's clear, in both advanced and non advanced xinput.
Thanks!