realnc / dosbox-core

A DOSBox core for use in RetroArch and other libretro frontends.
GNU General Public License v2.0
43 stars 18 forks source link

Gamepad direction becomes unresponsive when button is pressed + fast directional input is done #39

Open vanfanel opened 2 years ago

vanfanel commented 2 years ago

Hi again,

I found out that gamepad/joystick input shows some problems with this core. I am using a wired XB360 gamepad here, and this behaviour only seems to affect dosbox-core.

Keeping one joystick button pressed, while rapidly move left or right using the gamepad, causes the right direction to stop responding eventually. That affects gameplay on games such as SuperFrog or Jazz JackRabbit, where fast jumping+directional action is needed.

For example, in SuperFrog, look for an area without enemies and keep the jump button pressed while moving left and right very fast: you will eventually see one of the directions does not respond.

I have tried playing with the "Force 2 axis/2 button" and "Enable joystick timed intervals" options, but they don't make any difference.

Thanks!

realnc commented 2 years ago

Hm. I can reproduce this. It's fixed if you use "Joystick" rather than "Gamepad" as input type, and then configure your controller's dpad to map to the DOS left Y axis like this:

image

I tried to reproduce this in vanilla dosbox, but I don't even know how to configure dosbox to use digital input rather than analog :P

Another workaround is to not use joystick input at all in the game and instead map your controller to DOS keyboard buttons. In any event, this issue needs investigating.

andres-asm commented 2 years ago

that's because there is no such thing, I just hacked it

On Wed, Jan 19, 2022 at 7:05 AM Nikos Chantziaras @.***> wrote:

Hm. I can reproduce this. It's fixed if you use "Joystick" rather than "Gamepad" as input type, and then configure your controller's dpad to map to the dos Y axis like this:

[image: image] https://user-images.githubusercontent.com/1665903/150126133-b42ff7d2-c27a-4806-9d3d-bac6458deb0f.png

I tried to reproduce this in vanilla dosbox, but I don't even know how to configure dosbox to use digital input rather than analog :P

— Reply to this email directly, view it on GitHub https://github.com/realnc/dosbox-core/issues/39#issuecomment-1016402770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEFUFT4JYND3POU6EL6XTUW2SINANCNFSM5LO2MB2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

vanfanel commented 1 year ago

that's because there is no such thing, I just hacked it

@fr500 What do you mean exactly, please? I hadn't seen your answer until now.