RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    lr-vice: Drive Emulation, Mapping Keyboard Strokes

    Scheduled Pinned Locked Moved Help and Support
    lr-vicekeyboard mapdrive emuquick menu
    56 Posts 9 Posters 14.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      youxia
      last edited by youxia

      I've got this slight gripe with lr-vice: when I set "controller0 type" to "joystick" in QuickMenu/Options, I can then bind & use various useful keyboard keys (Space/n/f1 etc) to my joypad. But then the Enter (Return) key on the real keyboard evokes Vice GUI menu, which is fairly annoying. I actually just tested it again and there's more errors: "W"="N", "S" does not work, "Z" & "X" work only occasionally.

      And when I set "controller0 type" to "keyboard", my keyboard works ok, no, wait, "X" only works sometimes. And I can't use any of the joypad binds.

      In Vice and terminal my keyboard works fine.

      Anybody else has this problem? I'm still on 1.7.1 control scheme, (USB) keyboard and PS4 pad.

      R 1 Reply Last reply Reply Quote 0
      • R
        rsn8887 @youxia
        last edited by rsn8887

        @youxia I have a similar experience. Something fishy is going with RetroPie default mappings that is probably related: If I enter the Retroarch GUI with select+X and go to “controls” I can see that “Auto: 0 (N/A), key (z)” is mapped to “B”. I am concerned that it says “key (z)” there. I never mapped key z, only my controller, which is Auto 0. I wish it had labels for my controller inputs (DS4 Sony dongle) instead of saying Auto 0 (N/A), but fine.

        But here I wonder: why is the keyboard key (z) (and a bunch of other keys) mapped here in Retroarch, when I never mapped it myself?

        Clearly this must be the reason why the z key on my physical keyboard sometimes doesn’t work when the joystick is enabled in the vice core.

        I suspect Retropie employs some joytokey hack in the background which messes with our physical keyboard inputs and maps to keys like a, z, x, w, s etc. I have no clue why Retropie does that since Retroarch doesn’t require it and it just adds another layer of hack to the whole thing, and probably messes up our keyboard inputs in this emulator.

        All of these are just guesses it might be something else. But I noticed something else in Retropie. If I just enter a shell and press some buttons on my controller, I see characters appear. I don’t know why this is necessary since the emulators supports gmaepad input

        1 Reply Last reply Reply Quote 1
        • D
          DarishZone Banned
          last edited by

          Interesting, i'm limited on basic keyboard inputs on lr-vice, like spacebar-enter and numbers, everything seems to work fine. I prefer virtual keyboard honestly, but seems unresponsive at times, like directional arrows for trainers screens, i can see the input on visual keyboard, but nothing happens on screen. I think they have to work on it.

          1 Reply Last reply Reply Quote 0
          • Y
            youxia
            last edited by

            Outside text adventures there's no real need for full keyboard, I guess. Unfortunately I play a lot of them so... :/
            Plus, it just bugs me if something's not working.

            I have similar issues in ZX Spectrum and Amstrad, though on smaller scale. It'd be interesting to know if it's a fault to the emu itself or, like @rsn8887 says, external Pie/Retroarch problem ( like joytokey or some such)

            1 Reply Last reply Reply Quote 0
            • R
              rsn8887
              last edited by

              It might not even be joytokey. It might just be that for whatever reason RetroPie is mapping keys in addition to controller buttons. The keys it seems it maps are hardcoded to z, w etc. And there seems to be no easy way to disable that.

              This is still just a guess, but I have no other explanation why “key (z)” etc. would show up in the remapper next to my button inputs.

              1 Reply Last reply Reply Quote 0
              • D
                DarishZone Banned
                last edited by DarishZone

                I confirm what darkuni said, on lr-vice d81 files need drive set to 1581 to start, thank you for the advice :) parameter also need to be reversed to 1541 for d64 files (lr-vice will keep the change settings).

                Think to get rid completely of d81 files, i only have thirty of them on my set, crt and ef dsnt need to change anything.

                1 Reply Last reply Reply Quote 0
                • R
                  rsn8887
                  last edited by rsn8887

                  Concerning the default mapping of keyboard keys, it seems to be part of Retroarch's default "retroarch.cfg". In that file, there's a line

                  input_player1_b = "z"
                  

                  for example. It can be changed to

                  input_player1_b = "nul"
                  

                  and that fixes it.

                  There are a bunch of other defaults that have to be changed to "nul" manually in that file.

                  I have no clue why Retroarch would do such a thing, and it is very annoying to say the least.

                  I filed an issue on https://www.github.com/libretro/retroarch

                  1 Reply Last reply Reply Quote 0
                  • D
                    DarishZone Banned
                    last edited by

                    Is the keyboard functional for text adventures? I've not tried yet.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DarishZone Banned
                      last edited by

                      @rsn8887 said in lr-vice: Drive Emulation, Mapping Keyboard Strokes:

                      https://www.github.com/libretro/retroarch

                      Up this thread because rsn8887 find something relevant here about visual keyboard input. Was try mapping keyboard input on controller when i also noticed some input buttons on visual keyboard not working at all, like "n".
                      Also noticed Retroarch setting automap "z" on B button, but this is apparently on purpose for enabling some global commands which sadly interfere with lr-vice visual keyboard.
                      I'm afraid change those value would impact settings on others emulators, but it would be very good, for example, to assign spacebar on B button thus make playable lot of C64 games. Will made some tries and let you know.

                      1 Reply Last reply Reply Quote 0
                      • D
                        DarishZone Banned
                        last edited by

                        I was wrong, nevermind.

                        1 Reply Last reply Reply Quote 0
                        • N
                          ncc74656m @darkuni
                          last edited by

                          @darkuni Hey there, did you ever manage to make the D81 for Ultimate Wizard?

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            darkuni @ncc74656m
                            last edited by

                            @ncc74656m Unfortunately, I did not.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.