Light Gun!!!
-
@a7mag3ddon In addition, do you even see another device under
/dev/input/
besides mouse0? if not, your device isn't being detected by linux as a mouse, and as @dankcushions said, it needs to be a mouse in order for the emulator to pick up on it. -
On the Raspberry Pi, I've only ever been able to get my Aimtrak/DolphinBar guns functional in RetroPie's UAE4ALL2 and RecalBox's ScummVM. Throughout everything I've read on the matter, a program needs to be written with specific support for input devices using absolute coordinates, like that of touch screen support. If you do manage to get it working in some way, there's going to be plenty of happy people, including myself.
Edit: Meant to reply to a7mag3ddon
-
Well i read somehwere that support for light guns was added to new version of mame 2003 which reignited my search to get my aimtrack going on retropie, when i got it at xmas last year i was told, NO not even supported so left it at that.
-
in /dev/input/
I see mouse0 and mouse1 both dated with the time that i turned on the pi..
going to test with keyboard unplugged now see what happens
-
@mediamogul said in Light Gun!!!:
On the Raspberry Pi, I've only ever been able to get my Aimtrak/DolphinBar guns functional in RetroPie's UAE4ALL2 and RecalBox's ScummVM. Throughout everything I've read on the matter, a program needs to be written with specific support for input devices using absolute coordinates, like that of touch screen support. If you do manage to get it working in some way, there's going to be plenty of happy people, including myself.
Edit: Meant to reply to a7mag3ddon
have you tested with the latest version? if it needs trackpad support I can add that :) but I'd be interested to hear what happens at the moment.
-
Sure, I'll test both devices later this evening. I can't remember if I had two mice hooked up last time, so a7mag3ddon's current test could say a lot in the mean time.
-
Ok, light gun works!!! if i unplug the keyboard dongle and plug back after the pi has booted.
So question, how to get the keyboard mouse to always detect as 1 so that gun always comes in at 0 ?
-
Holy hannah! great work. Isn't there an order in which the USB ports are acknowledged by the system?
-
@a7mag3ddon wahoo! that's awesome :)
not sure how to swap what is mouse0/mouse1 - if you swap the USB sockets they are plugged into, does that sort it? that works for joysticks/pads, so hopefully!
-
I am curious why it even matters. I have multiple mouse devices connected and the order does not matter. Is this something that applies uniquely to direct XY input devices?
-
It matters because if the keyboard is plugged in (which on my pi always is) trackpad becomes mouse0
for some reason mame 2003 only allows mouse0 to be used in the emulator as an input device, when i take out the keyboard, gun becomes mouse 0 and works in games. :-)
-
@a7mag3ddon said in Light Gun!!!:
or some reason mame 2003 only allows mouse0 to be used
This is what tripped me up. I've had multiple mice hooked up in the past and they've all functioned together. I didn't even consider Mame needed it's intended input to be Mouse0. I'm just glad it works at all.
-
I'm probably getting ahead of myself in the excitement, but isn't there a NES core that supports mouse input in RetroArch as well? It seems like it was Nestopia, but I might be mistaken.
-
@a7mag3ddon said in Light Gun!!!:
It matters because if the keyboard is plugged in (which on my pi always is) trackpad becomes mouse0
for some reason mame 2003 only allows mouse0 to be used in the emulator as an input device, when i take out the keyboard, gun becomes mouse 0 and works in games. :-)
So, this isn't actually true. I don't plug and unplug my devices. I have a trackball on one mouse interface and a pair of spinners on another. Linux detects them mouse0 and mouse1 and they both work in mame2003 simultaneously.
-
Have you tried them both in conjunction with any light gun titles? I'm dying to try all this now, but am away from home.
-
@caver01 said in Light Gun!!!:
@a7mag3ddon said in Light Gun!!!:
It matters because if the keyboard is plugged in (which on my pi always is) trackpad becomes mouse0
for some reason mame 2003 only allows mouse0 to be used in the emulator as an input device, when i take out the keyboard, gun becomes mouse 0 and works in games. :-)
So, this isn't actually true. I don't plug and unplug my devices. I have a trackball on one mouse interface and a pair of spinners on another. Linux detects them mouse0 and mouse1 and they both work in mame2003 simultaneously.
mame2003 for sure will only read mouse0 only. retroarch only understands one mouse device. i'm not sure what could be going on.
-
True or not, that logic has worked for my aimtrack and i am no linux expert by a long shot so cant explain it.
Are you talking about full linux or retropie linux? or does it not matter?i tried NESTOPIA and the only options were Gamepad and Gapade + analogue
the ultimarc is detected as i can scroll under device and see it.
how i enable a "gun" addon to be turned on in nestopia i have no idea.
-
@mediamogul No, I never bothered, but I can do a test if that helps. My cab is a cocktail design so not exactly positioned right for shooters.
Regardless, AdvanceMAME allows for managing just about any combination of mouse inputs. The innovation here that a light gun is actually being used to generate mouse input.
-
@a7mag3ddon said in Light Gun!!!:
how i enable a "gun" addon to be turned on in nestopia i have no idea.
It's probably just not an option. I really wasn't sure.
Edit:
No, I never bothered, but I can do a test if that helps.
There's no need I really. I'll be playing around with this a lot this evening.
Thanks for finding this @a7mag3ddon and thanks again @dankcushions for your excellent work in enabling the support to begin with.
-
@a7mag3ddon it is supposed to just work with the NstDatabase.xml file in the /opt/retropie/libretrocores/lr-nestopia which it is in retropie but it doesnt do anything. I have the nes shooting roms and the playchoice 10 and the vs. system ones and i cant get any of them to recognize even a mouse click let alone the movements.
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.