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

    Joymap / libretro-o2em

    Scheduled Pinned Locked Moved Help and Support
    videopacodysse
    12 Posts 3 Posters 3.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.
    • mediamogulM
      mediamogul Global Moderator @ExarKunIv
      last edited by mediamogul

      @ExarKunIv said in Joymap / libretro-o2em:

      as anyone who has messed with the emu you need to press a key on the key board.

      I believe the key also depends on what information it's asking for, such as "How many Players?". I haven't had a chance to look at joymap in depth, but based on the links above, you'll want to use something like this in your map:

      button vendor=0x04d8 product=0xf673 src=8 target=kbd button="num1"
      

      The vendor and product number identify the controller. The src= entry identifies the button number on the controller that you want to map. The target=kbd entry specifies that you will be mapping a keyboard key to the chosen controller button, and the button= entry specifies which keyboard key to map the button to (In this case, the number 1). This particular example would of course get you past the question of how many players and allow the game to start for a single player game.

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      ExarKunIvE 1 Reply Last reply Reply Quote 0
      • ExarKunIvE
        ExarKunIv @mediamogul
        last edited by

        @mediamogul

        thanks for the input.

        i had most of what you said down already, but i did not know about putting "num 1" i just had "1" lol

        this is what i have been also messing around with to get o2em to read the Mapping.

         o2em-loadmap="sudo /home/pi/joymap/loadmap /home/pi/joymap/odd.map & /opt/retropie/libretrocores/lr-o2em/o2em_libretro.so %ROM%; sudo killall loadmap; sleep 1"
        

        im know that i have something wrong there also. this coding is very new to me

        thanks

        ill get to work on the mapping right away

        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
        Maintainer of RetroPie-Extra .

        edmaul69E 1 Reply Last reply Reply Quote 0
        • edmaul69E
          edmaul69 @ExarKunIv
          last edited by

          @ExarKunIv in case you didnt know, not all games use the player 1 controller. On the odyssey half the games use the left controller and the other half uses the right controller.

          ExarKunIvE 1 Reply Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @edmaul69
            last edited by

            @edmaul69

            yep i remember that. right now im just trying to get the keymapping to work so i dont need to have a keyboard just to press num 1.

            the rest will come later

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            edmaul69E 1 Reply Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @ExarKunIv
              last edited by

              @ExarKunIv you want to map 1-3. Otherwise you only can play the first game on the cart.

              ExarKunIvE 1 Reply Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv @edmaul69
                last edited by

                @edmaul69
                only some will play with out pressing a number key
                other then that they will sit there and say select game. there is no way to start that game unless you have a keyboard attached.

                right now i know that atlantis, amok,

                will start ok so far the rest will not, but i have not gone through all of them.

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                edmaul69E 1 Reply Last reply Reply Quote 0
                • edmaul69E
                  edmaul69 @ExarKunIv
                  last edited by

                  @ExarKunIv yes you need keyboard keys 1-3 mapped to you controller for multi game games. Any game that has only 1 game should boot without the keyboard. ie: games like frogger would boot without the keyboard.

                  ExarKunIvE 1 Reply Last reply Reply Quote 0
                  • ExarKunIvE
                    ExarKunIv @edmaul69
                    last edited by

                    @edmaul69

                    Yep. That's why I'm trying to map the keys

                    RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                    RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                    Maintainer of RetroPie-Extra .

                    edmaul69E 1 Reply Last reply Reply Quote 0
                    • edmaul69E
                      edmaul69 @ExarKunIv
                      last edited by

                      @ExarKunIv im probably overstating it but its more for other people who come later looking for this same problem.

                      ExarKunIvE 1 Reply Last reply Reply Quote 0
                      • ExarKunIvE
                        ExarKunIv @edmaul69
                        last edited by

                        @edmaul69

                        Lol

                        Ok

                        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                        Maintainer of RetroPie-Extra .

                        1 Reply Last reply Reply Quote 0
                        • ExarKunIvE
                          ExarKunIv
                          last edited by

                          here is what have so far for my key mapping.
                          im sure is will not work, but till i can get the libretro to read the joymap i cant test it.

                          #key map for keyboard keys for wireless 360 controller
                          
                          # Remapping the controller
                          
                          axis vendor=0x045e product=0x0291 src=0 target=joyaxis device=0 axis=0    # left, right axis
                          axis vendor=0x045e product=0x0291 src=1 target=joyaxis device=0 axis=1    # up, down axis
                          button vendor=0x045e product=0x0291 src=1 target=joybtn device=0 button=0   # B button
                          
                          # not sure if i need the flags="trinary" for my axis or not
                          
                          #buttons for selecting the game
                          
                          button vendor=0x045e product=0x0291 src=5 target=kbd button="num1"  #right bumper
                          button vendor=0x045e product=0x0291 src=7 target=kbd button="num2"  #right trigger
                          button vendor=0x045e product=0x0291 src=4 target=kbd button="num3"  #left bumber
                          

                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                          Maintainer of RetroPie-Extra .

                          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.