• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • E
    ExarKunIv
    last edited by 28 Sept 2016, 15:11

    First off i must say i love the forum. it has answer so many of my questions before i ever had to ask them.

    so here is my question

    Im trying to set up a joymap using joymap 0.4.1. for a custom controler for my Odyssey2 emu. as anyone who has messed with the emu you need to press a key on the key board. i have seen a few people ask this, but nothing has be finalized with it.

    so i looked at what people where doing and found that joymap would be the best way for me, as im using xpad as xboxdrv does not resynic with my controller.

    i have joymap installed as
    http://blog.petrockblock.com/forums/topic/mapping-a-game-controller-in-kodi/#post-106586
    says too

    and i have also used
    https://retropie.org.uk/forum/topic/2032/dosbox-mapping-mouse-to-ps3-analog-stick
    to help get the info about the controller and keys

    my thing is i can get the lr-o2em to see the maploader

    i have looked here as another post says

    https://retropie.org.uk/forum/topic/2032/dosbox-mapping-mouse-to-ps3-analog-stick.

    and im confused on it.

    can it be done or am i stuck using xboxdrv for my mapping

    i just need help getting the command correct, the rest i will fix once i can play with the controls

    Pi3
    Retropie 4.0.2
    joymap 0.4.1

    thanks for any help

    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 .

    M 1 Reply Last reply 28 Sept 2016, 17:49 Reply Quote 0
    • M
      mediamogul Global Moderator @ExarKunIv
      last edited by mediamogul 28 Sept 2016, 17:49

      @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

      E 1 Reply Last reply 28 Sept 2016, 19:24 Reply Quote 0
      • E
        ExarKunIv @mediamogul
        last edited by 28 Sept 2016, 19:24

        @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 .

        E 1 Reply Last reply 29 Sept 2016, 04:45 Reply Quote 0
        • E
          edmaul69 @ExarKunIv
          last edited by 29 Sept 2016, 04:45

          @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.

          E 1 Reply Last reply 29 Sept 2016, 14:32 Reply Quote 0
          • E
            ExarKunIv @edmaul69
            last edited by 29 Sept 2016, 14:32

            @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 .

            E 1 Reply Last reply 29 Sept 2016, 14:49 Reply Quote 0
            • E
              edmaul69 @ExarKunIv
              last edited by 29 Sept 2016, 14:49

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

              E 1 Reply Last reply 29 Sept 2016, 16:15 Reply Quote 0
              • E
                ExarKunIv @edmaul69
                last edited by 29 Sept 2016, 16:15

                @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 .

                E 1 Reply Last reply 29 Sept 2016, 21:14 Reply Quote 0
                • E
                  edmaul69 @ExarKunIv
                  last edited by 29 Sept 2016, 21:14

                  @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.

                  E 1 Reply Last reply 30 Sept 2016, 01:33 Reply Quote 0
                  • E
                    ExarKunIv @edmaul69
                    last edited by 30 Sept 2016, 01:33

                    @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 .

                    E 1 Reply Last reply 30 Sept 2016, 02:24 Reply Quote 0
                    • E
                      edmaul69 @ExarKunIv
                      last edited by 30 Sept 2016, 02:24

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

                      E 1 Reply Last reply 30 Sept 2016, 02:39 Reply Quote 0
                      • E
                        ExarKunIv @edmaul69
                        last edited by 30 Sept 2016, 02:39

                        @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
                        • E
                          ExarKunIv
                          last edited by 30 Sept 2016, 13:19

                          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
                          12 out of 12
                          • First post
                            12/12
                            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.

                            This community forum collects and processes your personal information.
                            consent.not_received