Raspberry Pi 4B 4GB and the Sega Saturn
-
Hi All,
I noticed that lr-yabause has an option for "saturn mouse" in retroarch. I tried configuring a mouse, was able to get games to recognize that a mouse was connected (shows up in-game menus), but it seems the core does not detect any mouse movements on-screen. I tried changing mouse indices which didn't seem to make a difference. I am not sure if I am missing something or the mouse implementation is incomplete. Any suggestions?
-
@prince_rakeem what's the game you tried ? are you sure that game supports saturn mouse ?
-
@barbudreadmon I was trying chaos control. If you go into options there is a setting called 'mouse' which can be set to low, medium and high. Without a mouse detected the option is greyed out, but when set to mouse in RA this option becomes available and can be adjusted. There just doesn't seem to be any mouse movement in the menus or in-game when mouse is enabled in RA. A few other games that I believe support a mouse are Mighty Hits and Virtua Cop 1+2 which I would like to get working.
-
@prince_rakeem I confirm "Saturn Mouse" is working properly with the yabause libretro core, i remembered it was among the things i backported from the Kronos libretro core but i wasn't sure if i properly tested it. So this isn't a core issue, i can only guess you have a setup related issue.
-
@barbudreadmon Hi again.
I was experiencing the same issue as @prince_rakeem and found that disabling the HLE BIOS allows the mouse to work with Chaos Control Remix. However, there is an issue with the mouse's start button. The code defines this as
(input_state_cb_wrapper(i, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_START) || input_state_cb_wrapper(i, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_BUTTON_4) || input_state_cb_wrapper(i, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_BUTTON_5) ? PerKeyDown((i << 8) + PERMOUSE_START) : PerKeyUp((i << 8) + PERMOUSE_START));
However, I find that I need to set the input type to a regular controller to use a start button to get into the main menu from the title screen. From there, the mouse can navigate the menu with its XY movement and select with the mouse buttons. I tried tinkering with the code but can't seem to get the start button to register while in mouse mode.
-
@ChaosEffect said in Raspberry Pi 4B 4GB and the Sega Saturn:
HLE BIOS
The first rule of emulators that have a HLE bios is to install a real bios and use it instead, those HLE bios are always broken in some way.
About that start button issue, it seems this game won't recognize the saturn mouse before the title screen (specifically, it doesn't work on the language selection screen), i suppose that's how that game was programmed, there is nothing i can do about this.
-
@barbudreadmon Thanks! I was looking at the HLE BIOS as more of a "skip intro" option 😆.
The mouse code for lr-yabause that was brought over from lr-kronos also functions fine in lr-yabasanshiro. My hope is that the lightgun stuff is compatible across all three too.
The code I tested for lightguns in lr-yabasanshiro was just that lr-kronos mouse code with the appropriate gun entities from
/yabause/src/peripheral.c
substituted in. The buttons work for both players, but I'm lost with trying to get the coordinate tracking to work by connecting theRETRO_DEVICE_ID_LIGHTGUN_SCREEN_X
andRETRO_DEVICE_ID_LIGHTGUN_SCREEN_Y
RetroArch entities to Yabause's gun axes.If someone gets the itch to look into that, I imagine the lightgun feature would be good to go for lr-kronos, lr-yabause, and lr-yabasanshiro.
-
@ChaosEffect said in Raspberry Pi 4B 4GB and the Sega Saturn:
lr-yabasanshiro
I stopped contributing to that project for all the reasons previously explained (with the main one being that it's breaking yabause's GPL license), but you are free to backport my code, i don't care as long as no one ask me to support this crap.
-
@barbudreadmon I understand. I am just having some fun trying to get things to work for myself, and that core happened to have decent performance on my pi. 😃
I think that my attempts at scaling the absolute mouse coordinates may have been me trying to measure length in pounds 👨🎓
-
@barbudreadmon I was able to get the mouse working following what @ChaosEffect mentioned (disabling HLE). In Chaos Control it is working as expected with a standard mouse. With a lightgun it is a bit wonky. Do you know if there are there any plans to introduce official lightgun support into yabause? There are a good 7-8 Saturn games which could benefit from this, a number of them not available on other systems.
-
@prince_rakeem said in Raspberry Pi 4B 4GB and the Sega Saturn:
Do you know if there are there any plans to introduce official lightgun support into yabause?
It has been on my todo list for 1 or 2 years
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.