libretro / dosbox-libretro

Port of DOSBox (upstream) to the libretro API.
GNU General Public License v2.0
61 stars 40 forks source link

Xbox 360 gamepad d-pad issue #112

Open Negatifff opened 5 years ago

Negatifff commented 5 years ago

Good day. I have Xbox 360 gamepad USB controller. Try to play some games like 'Fantastic Dizzy' and 'Dizzy Prince of the Yolkfolk' (other I don't try yet, sorry) with lr-dosbox core I found problem - my d-pad and left analog stick not working properly: work only left direction, other (up,down,right) not working at all. In other emulators and in the Dosbox this working correctly. Can you explain what's wrong? Maybe I not configured something?

Negatifff commented 5 years ago

sorry, double post

andres-asm commented 5 years ago

You need to calibrate the joystick in-game or with a dos calibration program. I don't really know why it happens.

For instance in a game like tyrian you have calibration in game so it works just fine.

On Mon, Oct 22, 2018 at 4:35 AM Negatifff notifications@github.com wrote:

Good day. I have Xbox 360 gamepad USB controller. Try to play some games like 'Fantastic Dizzy' and 'Dizzy Prince of the Yolkfolk' (other I don't try yet, sorry) with lr-dosbox core I found problem - my d-pad and left analog stick not working properly: work only left direction, other (up,down,right) not working at all. In other emulators and in the Dosbox this working correctly. Can you explain what's wrong? Maybe I not configured something?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/libretro/dosbox-libretro/issues/112, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpC0Oj_sZjVamE_gyd8frnG-NNnErmBks5unZFXgaJpZM4XzC27 .

Negatifff commented 5 years ago

You need to calibrate the joystick in-game or with a dos calibration program. I don't really know why it happens. For instance in a game like tyrian you have calibration in game so it works just fine.

Thanks for reply. I did not see a calibration item in the game. Or do you mean the lr-dosbox calibration when the game is running? If yes - how to do it? And how to calibrate the gamepad in the dos calibration program in my case?

fue36 commented 5 years ago

You need to calibrate the joystick in-game or with a dos calibration program. I don't really know why it happens. For instance in a game like tyrian you have calibration in game so it works just fine.

I have the same issue as the original poster. Joystick calibration is not the issue. Only occurs in the lr-dosbox core. Button bindings correct. Of the Up, Down, Left, Right, only Left controls works. This is on a Ps4 controller - same if I press the keyboard arrows, so I don't think it's controller specific. I can workaround the issue using the left analog stick by changing the "User 1 Device Type" from Gamepad to Joystick (517) in Retroarch. This however, disables the D-PAD on the controller. FYI: The Right Analog stick acts as mouse, and it functions correctly throughout.

nano /opt/retropie/configs/all/retroarch/config/DOSBox/DOSBox.cfg input_libretro_device_p1 = "517"

1.7.5 DOSBox 0.74 7216efe - complied on Raspberry Pi (retropie) - Kernel 4.14.79-v7+