Main > Main Forum
Dual TV-guns Act-Labs
shmokes:
This question is pretty much for U_rebelscum, but I figure others will benefit from the answer so rather than p/m...
Do you know yet how Act-Labs is planning to support dual lightguns with the TV-out flavor?
Will we need to run Mame analog+? Will it be possible to get dual gun support in Windows XP?
Howard_Casto:
Yes,No,Yes
try reading the annoucnments about the gun at www.act-labs.com :)
shmokes:
;D I think you may have read my first question slightly off, or at least I was hoping to get an elaboration rather than just a yes. It says do you know how, not do you know if. I knew the if answer and have two preordered.
But since they are acting like a couple of mice I figured that we might have to use analog+, or at the least the problem with both triggers being pulled at once could possibly be alleviated with analog+
u_rebelscum:
First, sorry for the late reply: wasn't home for this weekend.
AFAIK (from the actlab forum, mostly), actlabs is making an assumption that is not true in mame in their dual lightgun design.
How the gun will get hardware "dual" support:
The tv lighguns will have a switch. That switch changes the button numbers from 1-trigger, 2-side button, to 3-trigger, 4-side button. So for dual lightguns, one tv lightgun has the switch on, the other off. This is fine as far as buttons go, because directX supports 4 buttons on mice, and mame (AFAIK) can do four button already (not in ctrlr/ini file, though, sort of like joybuttons7+).
But both guns will still effect one mouse location.
Act-lab has said that if both buttons are pressed close to the same time, the events sent to the computer will be gun 1 button (1/2) press, screen location, gun 2 button (3/4) press, screen location in that order. (There is a timing limit of the USB data rate.) This is fine if the app uses event based, buffered mouse input reading.
Mame, however, is not event-based, and is non-buffered, for mouse, joystick, and keyboard inputs. By switching to buffered mouse input, mame can cover some of the problems of not switching to event-based input, but IMO it will be a hack that removes some of the OS/core emulation accuracy.
Quote from actlabs forum: Grant - ACT LABS Administrator
--- Quote ---Two TV guns can be used simultaneously independantly. This gun will report as a 4 button device, but the gun will only use two of them. The first gun will only use button 1 & 2 and the second gun will only use button 3 & 4. The game will associate button 3/4 for the second gun and button 1/2 for the first gun. When both guns fire at similar times, the first gun will register button 1 first and then its x/y position in sequence; the second gun will register button 3 and then its x/y position in sequence. Button 2 & 4 will be used for a reload even. The only time the application will miss the first x/y position event is if the two players fire each trigger at once within 10 milliseconds (limitation of the USB Full-Speed pipeline). The chances of this occuring is very rare, unless you can trigger the gun 100 times per second.
--- End quote ---
http://www.act-labs.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=13&t=000145
It even sounds like dual tv guns might report to windows as the same mouse (maybe by both plugging into the same VGA dongle box). If this is true, then even analog+ wouldn't work. The USB optipac, however, can report as two mice through the one USB cable, so this could be used by actlabs, too, and then this alarm would be a false one.
my $0.02, AFAIK. Remember, I'm not on the inside, so I could all wrong (which I hope).
shmokes:
Wow...great answer. Even if you're wrong (which I also hope), you're theory is sound and extremely informative.