Supermodel use on ARM (built successfully, have question)

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Supermodel use on ARM (built successfully, have question)

Postby StormedBubbles » Sun Jan 23, 2022 9:06 am

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.)
Last edited by StormedBubbles on Mon Jan 24, 2022 9:11 pm, edited 1 time in total.
StormedBubbles
 
Posts: 4
Joined: Fri Jan 21, 2022 1:30 pm

Re: Supermodel use on ARM (built successfully, have question

Postby Bart » Mon Jan 24, 2022 9:10 pm

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Supermodel use on ARM (built successfully, have question

Postby StormedBubbles » Mon Jan 24, 2022 9:22 pm

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.
StormedBubbles
 
Posts: 4
Joined: Fri Jan 21, 2022 1:30 pm

Re: Supermodel use on ARM (built successfully, have question

Postby Hoagie » Tue Jan 25, 2022 4:44 pm

Although SDL2 supports multiple mice, it cannot differentiate their inputs.

You would need to implement something like: https://icculus.org/manymouse/
Hoagie
 
Posts: 4
Joined: Tue Jan 25, 2022 4:25 pm

Re: Supermodel use on ARM (built successfully, have question

Postby Hoagie » Wed Jan 26, 2022 9:09 am

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

.
Hoagie
 
Posts: 4
Joined: Tue Jan 25, 2022 4:25 pm

Re: Supermodel use on ARM (built successfully, have question

Postby Bart » Wed Jan 26, 2022 10:55 am

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Supermodel use on ARM (built successfully, have question

Postby StormedBubbles » Wed Jan 26, 2022 12:03 pm

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.
StormedBubbles
 
Posts: 4
Joined: Fri Jan 21, 2022 1:30 pm


Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 0 guests