It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hey GOG friends,

Just wanted to ask if it is possible for a 360 controller to function with the GOG games using dosbox. Quick google search wasnt all that helpful. I ll be very thankful for any info. And if it is possible, could you point me where to find the controller settings inside dosbox.

Thank you so much in advance!!!
I don't see why not... However it would probably need an edit to the config file or dosbox would have to recognize and be able to make use of the API protocols...

I'll pull up Mortal Kombat and see if i can't get my PS2 controller to work, and get back to you... hopefully soon...

edit:
Within the readme of Dosbox found this portion as of yet:

====================
6. Joystick/Gamepad:
====================

The standard joystick port in DOS supports a maximum of 4 axes and 4 buttons. For more, different modifications of that configuration were used.

To force DOSBox to use a different type of emulated joystick/gamepad, the entry"joysticktype" in the [joystick] section of the DOSBox configuration file can be used.

none - disables controller support.
auto - (default) autodetects whether you have one or two controllers connected:
if you have one - '4axis' setting is used,
if you have two - '2axis' setting is used.
2axis - If you have two controllers connected, each will emulate a joystick
with 2 axes and 2 buttons. If you have only one controller connected,
it will emulate a joystick with only 2 axis and 2 buttons.
4axis - supports only first controller, emulates a joystick
with 4 axis and 4 buttons or a gamepad with 2axis and 6 buttons.
4axis_2 - supports only second controller.
fcs - supports only first controller, emulates ThrustMaster
Flight Control System, with 3-axes, 4 buttons and 1 hat.
ch - supports only first controller, emulates CH Flightstick,
with 4-axes, 6 buttons and 1 hat, but you cannot press more
than one button at the same time.

You also have to configure controller properly inside the game.

It is important to remember that if you saved the mapperfile without joystick

connected, or with a different joystick setting, your new setting will not work properly, or not work at all, until you reset DOSBox's mapperfile.

If controller is working properly outside DOSBox, but doesn't calibrate properly inside DOSBox, try different 'timed' setting in DOSBox's configuration file.
Attachments:
Post edited May 19, 2018 by rtcvb32
avatar
rtcvb32: I don't see why not... However it would probably need an edit to the config file or dosbox would have to recognize and be able to make use of the API protocols...

I'll pull up Mortal Kombat and see if i can't get my PS2 controller to work, and get back to you... hopefully soon...
Thanks man!!! :D
want to thank MarkoH01too, who sendet me a link to these topic: https://www.gog.com/forum/general/about_dosbox_and_xbox_360xinput_controllers
I can't understand some parts of the description :D. However i'll play around with it tomorrow.
avatar
obi4ammama: Just wanted to ask if it is possible for a 360 controller to function with the GOG games using dosbox. Quick google search wasnt all that helpful. I ll be very thankful for any info. And if it is possible, could you point me where to find the controller settings inside dosbox.
I don't know about any native DOSBox controller support or how to set it up but if it doesn't work out, then another alternative would be to use something like Xpadder / Keysticks / Pinnacle Game Profiler, etc, to "translate" the controller input to virtual key-presses / mouse movements. I've used this in the past, and it works very well for platformer / arcade style games. In fact it makes a great media centre / Netflix "remote controller" too.
Post edited May 19, 2018 by AB2012
avatar
rtcvb32: I don't see why not... However it would probably need an edit to the config file or dosbox would have to recognize and be able to make use of the API protocols...

I'll pull up Mortal Kombat and see if i can't get my PS2 controller to work, and get back to you... hopefully soon...

edit:
Within the readme of Dosbox found this portion as of yet:

====================
6. Joystick/Gamepad:
====================

The standard joystick port in DOS supports a maximum of 4 axes and 4 buttons. For more, different modifications of that configuration were used.

To force DOSBox to use a different type of emulated joystick/gamepad, the entry"joysticktype" in the [joystick] section of the DOSBox configuration file can be used.

none - disables controller support.
auto - (default) autodetects whether you have one or two controllers connected:
if you have one - '4axis' setting is used,
if you have two - '2axis' setting is used.
2axis - If you have two controllers connected, each will emulate a joystick
with 2 axes and 2 buttons. If you have only one controller connected,
it will emulate a joystick with only 2 axis and 2 buttons.
4axis - supports only first controller, emulates a joystick
with 4 axis and 4 buttons or a gamepad with 2axis and 6 buttons.
4axis_2 - supports only second controller.
fcs - supports only first controller, emulates ThrustMaster
Flight Control System, with 3-axes, 4 buttons and 1 hat.
ch - supports only first controller, emulates CH Flightstick,
with 4-axes, 6 buttons and 1 hat, but you cannot press more
than one button at the same time.

You also have to configure controller properly inside the game.

It is important to remember that if you saved the mapperfile without joystick

connected, or with a different joystick setting, your new setting will not work properly, or not work at all, until you reset DOSBox's mapperfile.

If controller is working properly outside DOSBox, but doesn't calibrate properly inside DOSBox, try different 'timed' setting in DOSBox's configuration file.
avatar
rtcvb32:
Thank you so much :P. Will give it a go :D
avatar
obi4ammama: Just wanted to ask if it is possible for a 360 controller to function with the GOG games using dosbox. Quick google search wasnt all that helpful. I ll be very thankful for any info. And if it is possible, could you point me where to find the controller settings inside dosbox.
avatar
AB2012: I don't know about any native DOSBox controller support or how to set it up but if it doesn't work out, then another alternative would be to use something like Xpadder / Keysticks / Pinnacle Game Profiler, etc, to "translate" the controller input to virtual key-presses / mouse movements. I've used this in the past, and it works very well for platformer / arcade style games. In fact it makes a great media centre / Netflix "remote controller" too.
Thank you for answering :), i ll try to do it directly within dosbox. If i am not successful, i ll try one of the mentioned by you apps :P
Post edited May 19, 2018 by obi4ammama
Well some good news, running DosBox by itself one window as a debug window gives me the following:

CONFIG:Loading primary settings from config file C:\Users\pcuser\AppData\Local\DOSBox\dosbox-0.74.conf
MIDI:Opened device:win32
One joystick reported, initializing with 4axis
Using joystick USB Joystick with 4 axes, 12 buttons and 1 hat(s)
Considering it's a PS2 controller, that checks out.

While i'm not having good success with MK2 (not editing the right conf file?), DosBox does seem to detect controllers. But i'd definitely suggest a key mapper first, as those can be more universal rather than finicky.

edit: And turning off console and getting feedback from DosBox i get this for MK2:
CONFIG:Loading primary settings from config file ..\dosboxMortalKombat2.conf
CONFIG:Loading additional settings from config file ..\dosboxMortalKombat2_single.conf
MIDI:Opened device:win32
One joystick reported, initializing with 4axis
Using joystick USB Joystick with 4 axes, 12 buttons and 1 hat(s)
DOSBox switched to max cycles, because of the setting: cycles=auto. If the game
runs too fast try a fixed cycles amount in DOSBox's options.
So... DosBox IS recognizing my PS2 controller, it will just be a matter of fiddling with it. Then again that assumes that MK2 even supports the joystick/gamepad support at all and isn't keyboard only... which actually i haven't checked...

edit: Heh, had to find an obscure readme file for MK2. F10 gives me the options, and set it joystick and it works...

So yeah....
Post edited May 19, 2018 by rtcvb32
avatar
rtcvb32: Well some good news, running DosBox by itself one window as a debug window gives me the following:

CONFIG:Loading primary settings from config file C:\Users\pcuser\AppData\Local\DOSBox\dosbox-0.74.conf
MIDI:Opened device:win32
One joystick reported, initializing with 4axis
Using joystick USB Joystick with 4 axes, 12 buttons and 1 hat(s)
avatar
rtcvb32: Considering it's a PS2 controller, that checks out.

While i'm not having good success with MK2 (not editing the right conf file?), DosBox does seem to detect controllers. But i'd definitely suggest a key mapper first, as those can be more universal rather than finicky.

edit: And turning off console and getting feedback from DosBox i get this for MK2:

CONFIG:Loading primary settings from config file ..\dosboxMortalKombat2.conf
CONFIG:Loading additional settings from config file ..\dosboxMortalKombat2_single.conf
MIDI:Opened device:win32
One joystick reported, initializing with 4axis
Using joystick USB Joystick with 4 axes, 12 buttons and 1 hat(s)
DOSBox switched to max cycles, because of the setting: cycles=auto. If the game
runs too fast try a fixed cycles amount in DOSBox's options.
avatar
rtcvb32: So... DosBox IS recognizing my PS2 controller, it will just be a matter of fiddling with it. Then again that assumes that MK2 even supports the joystick/gamepad support at all and isn't keyboard only... which actually i haven't checked...

edit: Heh, had to find an obscure readme file for MK2. F10 gives me the options, and set it joystick and it works...

So yeah....
Wow man thank you for taking the issue so seriously :P. I really appriciate your input. Good to know that dosbox has controller support. I will try to set up duke nukem 1 tomorrow with 360 controller :P
avatar
obi4ammama: Wow man thank you for taking the issue so seriously :P. I really appriciate your input. Good to know that dosbox has controller support. I will try to set up duke nukem 1 tomorrow with 360 controller :P
Yeah, suggestions. Go to the launcher and go to properties and edit it, remove the -noconsole option, which will give you debugging information. If it all looks good with your controller, then it will probably be an in-game option you have to enable. Hopefully you don't have to fiddle with the configuration file.

Beyond that... Good luck :)
avatar
obi4ammama: Wow man thank you for taking the issue so seriously :P. I really appriciate your input. Good to know that dosbox has controller support. I will try to set up duke nukem 1 tomorrow with 360 controller :P
avatar
rtcvb32: Yeah, suggestions. Go to the launcher and go to properties and edit it, remove the -noconsole option, which will give you debugging information. If it all looks good with your controller, then it will probably be an in-game option you have to enable. Hopefully you don't have to fiddle with the configuration file.

Beyond that... Good luck :)
Kudos, as result from the input from you and the other gog community members, i am confident i will get lucky in this configuration adventure :D
avatar
obi4ammama: Kudos, as result from the input from you and the other gog community members, i am confident i will get lucky in this configuration adventure :D
I hope so. If you need help editing your config file i will try and be helpful, but my experiences so far as just gone to reverting it to it's previous state :P Let's hope it's painless.
For games that don't need analog controls, I find a third party mapper like joy2key far more friendly to use. It's the only way I could get my 360 pad to work well with the first two Earthworm Jim games. Actually had to disable joystick in dosbox config for it to work tho. Obviously this won't work well for flight sims and the like which need analog controls, unless for mapping buttons that the game doesn't recognize.
Post edited May 20, 2018 by kalirion
avatar
kalirion: For games that don't need analog controls, I find a third party mapper like joy2key far more friendly to use. It's the only way I could get my 360 pad to work well with the first two Earthworm Jim games. Actually had to disable joystick in dosbox config for it to work tho. Obviously this won't work well for flight sims and the like which need analog controls, unless for mapping buttons that the game doesn't recognize.
Thanks for the input :P I appriciate it :)