Forum Replies Created
-
AuthorPosts
-
ricrpiParticipant
I’m getting a little confused now, can anyone tell me if RetroPie or other emulators require SDL/X11 support? I can’t get an X11 window using SDL2 with GLES2 support.
To test, supplementary/sdl2.sh, line 22 would need to be changed to
./configure --disable-video-x11 --disable-video-opengl
ricrpiParticipantmupen64plus throws an error on SDL_CreateWindow() in api/vidext_sdl2_compat.h when SDL2 is compiled with X11 support. Hopefully its just a flag/attribute issue.
ricrpiParticipantOn friday my testing of mupen64plus with SDL and X11 failed. I have updated the build script though as I think it is a core related issue that I am looking into.
Mupen64plus will compile and work if you build without X11 support but it would break retroPi as the script will require one to update the SDL library (it will then be missing X11 support).
Within the build script there is some commented out commands in the SDL section that would statically link SDL into mupen64plus (near line 285, look for SDL_CFLAGS=…). I have not tested the binaries though.
ricrpiParticipantIt was in the experimental section last time I checked.
Retropie uses the script github.com/ricrpi/mupen64plus/build.sh. I’m currently in the process of updating it though but should be finished by friday. The script is not wholly compatible with Retropie at the moment. You could hack the script by removing –disable-video-x11 on line 37 to get it working before friday.
ricrpiParticipantI am pleased to confirm that Joystick events are now working.
Just set the event e.g. Joy Mapping Stop = “J0B1”.
Note that the ‘J’ and ‘B’ are case sensitive and make sure you change the correct .cfg file.
ricrpiParticipantA year ago I found that SDL keyboard input did not appear to work without the desktop so I quickly threw something together using raw keyboard inputs for console use.
I’m revisiting this code since the official mupen64plus has now moved to SDL2 and I’ve found some missing information I need for SDL2 graphics and input on the pi.
ricrpiParticipantActually I recall seeing issues with the sdl_filter api function, used in the core, to detect events so I don’t think my comment above will work (although the code does support joystick events).
I’ll have a look through the libretro version tonight to see how they have worked around the issue.
ricrpiParticipantgizmo98
Have you tried using the ‘Joy Mapping Stop’ parameter in the mupen64plus.cfg file? You need to set it to somthing like ‘J0B9’ (for joystick 0, Button 9).
Hat buttons look more troublesome in the code. One must use J0HxVd where x is the Hat axis number and d is the dirction&magnitude.
There is probably a program to find button numbers easily however I usually use:
`cat /dev/[joystick0?] | hexdump -e ‘8/1 “%02X ” “\n”‘
If you think the code is broken then could you raise an issue on the repo.
-
AuthorPosts