Trackball and Lightgun
-
Does anyone out there have trackball and lightgun both working on their image with advmame 1.4? I so need your cfg file desperately!.. I've had enough of trying.
I start a fresh image and boom the trackball works but lightgun does not.
I start a fresh image and boom the lightgun works but the trackball does not..
What in the world is going on here -
I use the latest AdvanceMAME, but I believe I can safely advise you in 1.4 that both devices need to be assigned to player one. Both are actually seen as mouse devices and by default, only the first mouse device is assigned to player one. Below is an example from my own
advmame.rc
fileinput_map[p1_trackballx] mouse[0,x] mouse[1,x] mouse[2,x] input_map[p1_trackbally] mouse[0,y] mouse[1,y] mouse[2,y] input_map[p1_lightgunx] mouse[0,x] mouse[1,x] mouse[2,x] input_map[p1_lightguny] mouse[0,y] mouse[1,y] mouse[2,y]
There, you'll notice I've assigned the first three mouse devices (0, 1 and 2) to player one.
-
@mediamogul
Ok I will check my rc file. Thank you
Do they both have to be plugged in to a certain usb port? Or can I use a hub? -
You can use a hub. The operating system will assign a ordered number to the devices based on the order the devices are discovered.
-
@mediamogul
I changed those 2 configs in the advmame 1.4 .rc and rebooted pi.
Now no games load up (just brings me back to the game selection screen)
any ideas? -
@kmetz7547 You introduced some kind of syntax error or a duplicate line. If there is something wrong in the .rc file, advmame won't load.
-
Are we allowed to share our .rc file here? I could really use someone's help
-
Sure. You can either post it here surrounded on either side by three backticks, e.g. ``` , or you can post it somplace like www.pastebin.com and give a link to it.
-
-
It looks like @caver01 was right about you having duplicate entries.
input_map[p1_lightgunx] auto input_map[p1_lightguny] auto
Try removing the entries above, located at lines 107 and 108 and see if it'll launch.
-
@mediamogul
yes it now boots but lightgun does not work. (trackball does work)
im using wiimote with dolphinbar.
tried mode 1 and 2 on dolphinbar
should i be using something else?If i attempt a new image, i can get the lightgun to work but then the trackball does not.
https://pastebin.com/HATtyPHkthanks for the help guys
-
@kmetz7547 Have you gone through this wiki yet? Lightgun/trackball--for your setup linux should be treating these as mice. You will probably want to do some of the tests suggested including running the advm utility to see what index advancemame is using for each device. Also, pay special attention to the settings that specify using RAW, PS2, and setting the index for each device in the .rc file.
-
@kmetz7547 For example, setting these lines:
device_mouse raw device_raw_mousedev[0] /dev/input/mouse0 device_raw_mousedev[1] /dev/input/mouse1 device_raw_mousedev[2] /dev/input/mouse2 device_raw_mousedev[3] /dev/input/mouse3 device_raw_mousetype[0] ps2 device_raw_mousetype[1] ps2 device_raw_mousetype[2] ps2 device_raw_mousetype[3] ps2
will define the first four mouse devices. Make sure you are not duplicating entries.
-
@caver01
Updated rc with these inputs and games still load but lightgun don't work. Just the d pad on the wiimote works, not the motion.
The trackball works within the lightgun games, bit the wiimote does not -
@kmetz7547 Did you do any of the testing described in the Wiki link?
-
Also, these lines above only establish the input devices. You still have to map them using
input_map
lines. -
@caver01
@mediamogul
cancel that, right after a reboot , it works!... I cant thank you guys enough. Awesome Help!
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.