Page 1 of 1
Supermodel use on ARM (built successfully, have question)

Posted:
Sun Jan 23, 2022 9:06 am
by StormedBubbles
Hi all,
Yesterday, revision 876 was successfully built for use on Raspberry Pi and functions great! I have Sinden lightguns and am a part of that community. A friend of ours successfully added the white border to the Pi build of Supermodel so that we can use a gun with L.A. Machineguns, The Lost World, The Ocean Hunter, and Star Wars Trilogy Arcade.
As per the README files and the code itself, the raw-input setting that allows multiple mice is only meant for Windows. In fact, that setting crashes the emulator on Pi when activated. We are curious if there is a way to get multiple mice in the emulator on Linux, whether that be via an alternate raw-input mode or via an updated form of SDL input.
(this would benefit any Linux user with Sinden guns, Gun4IR, Aimtrak, Wii remotes, regular mice, etc.)
Re: Supermodel use on ARM (built successfully, have question

Posted:
Mon Jan 24, 2022 9:10 pm
by Bart
Raw input is a variant of DirectInput, I believe, so it's not available on anything but Windows. It shouldn't crash on UNIX builds (which is what I assume the Pi one is based off of) because the option should not even be enabled there. Only SDL is available on non-Windows builds. Have you confirmed that SDL2 does not support multiple mice? I thought it might.
Re: Supermodel use on ARM (built successfully, have question

Posted:
Mon Jan 24, 2022 9:22 pm
by StormedBubbles
Hey, thanks for your response.
Our friend who got the Sinden border applied to the emulator indicated that, while the emulator uses SDL 2, the SDL INPUT implementation is still based around SDL 1 (no multi-mouse):
- Code: Select all
int CSDLInputSystem::GetNumMice()
{
// Return ANY_MOUSE as SDL 1.2 cannot handle multiple mice
return ANY_MOUSE;
}
My understanding is that SDL 2 does allow multiple mice, but I am having trouble finding a direct link showing that. The Pi's OS definitely is able to see and operate multiple mice as separate simultaneous input devices, as multi-mouse is a feature used by some other emulators on Raspberry Pi.
Re: Supermodel use on ARM (built successfully, have question

Posted:
Tue Jan 25, 2022 4:44 pm
by Hoagie
Although SDL2 supports multiple mice, it cannot differentiate their inputs.
You would need to implement something like:
https://icculus.org/manymouse/
Re: Supermodel use on ARM (built successfully, have question

Posted:
Wed Jan 26, 2022 9:09 am
by Hoagie
StormedBubbles wrote:My understanding is that SDL 2 does allow multiple mice, but I am having trouble finding a direct link showing that. The Pi's OS definitely is able to see and operate multiple mice as separate simultaneous input devices, as multi-mouse is a feature used by some other emulators on Raspberry Pi.
SDL2 does support multiple mouse input, however it is not able to differentiate the inputs across multiple devices.
I believe something like
https://icculus.org/manymouse/ would be required.
Ref: https://discourse.libsdl.org/t/does-cur ... me/26012/3.
Re: Supermodel use on ARM (built successfully, have question

Posted:
Wed Jan 26, 2022 10:55 am
by Bart
Maybe it could be incorporated into Supermodel but presently, the input system provides a unified interface for all devices and it sounds like ManyMouse handles only mouse input, which would mean that it would have to be embedded somewhere within the input system itself. If you want to tackle it, give it a go and we can see how it turns out and try to integrate it.
On a side note, I wonder if we should move to github to make PRs easier to submit.
Re: Supermodel use on ARM (built successfully, have question

Posted:
Wed Jan 26, 2022 12:03 pm
by StormedBubbles
A friend and I have been helping report bugs and test the lightgun functionality of various emulators in the Pi/ARM environment, and the GitHub ecosystem definitely makes it easier to communicate with devs about specific issues. The fork feature also helps out with testing potential feature additions like this.
I find myself in the situation a lot of users are probably in: I don't have the technical know-how to be able to contribute at the programming level, but if Hoagie or anyone else were to attempt to tackle this particular issue (thank you in advance if you do!), I'd be grateful and more than happy to test out any needed scenarios with the equipment I have.