First post, by Barret7sc
Well, I feel kinda silly about this. I recently got a XBOX 360 controller for emulators and such, and could not for the life of me get the dpad to work right in dosbox. I could map the controls just fine (it appears as a hat switch), but the bindings would never work in game.
I even went as far as downloading the source and started to hack in support for XINPUT (The API for the controller), before finding out the solution.
To make the dpad work right, set the joystick type to "fcs". The other joystick types don't emulate a hat switch, so, for whatever reason, the mapper never tries to run the events tied to the hat switch.
Personally, I think this is broken behavior, a physical hat switch is not always going to be mapped directly to the emulated one. Is this really intended behavior, and if so, why? 😉
Anyway, just in case anyone was wondering how to make that work, there you go.