Coder Social home page Coder Social logo

Comments (5)

realnc avatar realnc commented on May 22, 2024 1

It's fixed now. All RetroMap inputs can be mapped to the DOS gamepad/joystick in the RetroArch controls UI or to the DOS keyboard in the core options UI.

Note that for a keyboard mapping to actually trigger, the controls mapping for that input must not be disabled. Meaning it must not be set to "---" in the RetroArch UI, but to one of the choices marked with [Core].

from dosbox-core.

realnc avatar realnc commented on May 22, 2024

You can map 4 buttons. You need to disable all other input ports (set them to "Disconnected".) The problem is that DOS supports either two 2-button gamepads, or one 4-button gamepad. To get a 4-button pad, only one port can be set to "Gamepad" or "Joystick".

However, as you said, it would still be useful to be able to map keyboard and gamepad buttons at the same time. I'll see what I can do.

from dosbox-core.

realnc avatar realnc commented on May 22, 2024

I added keyboard mapping in the core options. Unfortunately, it's not possible to do this through the normal control options of RetroArch because it limits the maximum possible mapping choices to just 24 when not configuring the input port to "Keyboard + Mouse".

This is because the "RetroPad" (which is used for ports that are set to "Gamepad" or "Joystick") only has 24 possible inputs, and the libretro API has no means of extending that. Out of those 24 choices, 8 are already taken up by the DOS gamepad/joystick, 1 is taken by the virtual keyboard toggle, so that leaves only 15 extra choices. Since DOS keyboards have 104 keys, 15 choices isn't enough to cover everything.

With the new "Gamepad/Joystick keyboard mappings" settings in the core options you can map to any keyboard key you want.

If the RetroArch core updater takes too long to offer this update, you can grab it manually from https://github.com/realnc/dosbox-core/releases.

from dosbox-core.

realnc avatar realnc commented on May 22, 2024

Oops, there's a bug. Inputs that are unmapped in the normal controls UI don't register at all even when mapping them to keyboard keys in the core options.Will need to fix that.

from dosbox-core.

redmist77 avatar redmist77 commented on May 22, 2024

Nice work. This is similar to the way that the VICE core lets you map the RetroPad to the keyboard. I think it works well.

from dosbox-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.