Joymap / libretro-o2em
-
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 tooand 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 keysmy 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.1thanks for any help
-
@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. Thetarget=kbd
entry specifies that you will be mapping a keyboard key to the chosen controller button, and thebutton=
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. -
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
-
@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.
-
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
-
@ExarKunIv you want to map 1-3. Otherwise you only can play the first game on the cart.
-
@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.
-
@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.
-
Yep. That's why I'm trying to map the keys
-
@ExarKunIv im probably overstating it but its more for other people who come later looking for this same problem.
-
-
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
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.