libretro / dosbox-libretro

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

Complete kbd to controller bindings #118

Closed vaerc closed 5 years ago

vaerc commented 5 years ago

In addition to all the previous issues about controller support, I wanted to address one particular issue I was experiencing. First, I encountered this in android Retroarch 1.7.3 & 1.7.6. When "keyboard + mouse" is selected as the device type, I can bind keyboard commands to all of my controller buttons (even the triggers that are technically axes), but I cannot bind anything to the left or right analogs. I can change the device type to "Joystick" and map emulated joystick and mouse functions to the axes, but then I lose the keyboard bindings while in dosbox. On your libretro docs, it states

"Keyboard - Keyboard - Keyboard inputs are always active." https://docs.libretro.com/library/dosbox/

Unless I am misinterpreting it, that seems not to be the case. Further, with dos software very keyboard intensive, I'd like to be able to bind keyboard keys to the individual axes as well, to make use of the entire controller. Under "Quick Menu" > "Controls" and With "keyboard + mouse," there are no settings to change axis mappings to keyboard events like there are with buttons, unless I am missing something unobvious.

Thanks for all the effort put into this so far!

vaerc commented 5 years ago

By the way, Hi, I am new to here. How rude of me!

Also, I am experimenting with the dosbox-svn core in Retroarch 1.7.6 android since the dosbox core crashes, and I am using a Moga hero (Moga 2 HID) controller, which is otherwise working fine for me.

andres-asm commented 5 years ago

"Keyboard - Keyboard - Keyboard inputs are always active." https://docs.libretro.com/library/dosbox/I can bind keys to axes just fine.

This means that if you don't do anything else keyboard is always active. Haven't been able to figure out a way to remap and have the remapped keys still work on the keyboard.

This is a RA issue, not dosbox's

I hadn't noticed I didn't add analogs for the keymapper.

This is a RA issue too, not dosbox's.

That said I don't have any time or motivation to work on these issues nowadays so unless someone else picks it up it's not gonna get fixed any time soon.

You should report it in the RA repo instead.

vaerc commented 5 years ago

OK, thank you for the post. I misinterpreted this repo as RA's specifically for dosbox issues!