About the reload:
What is wrong with this (probably something):
If the trigger is set to button 1, it always presses button 2 in addition to button1 when clicked off-screen. (or it could be button .
Also, when clicked off-screen, it always sends (0,max) when the trigger is pulled.
A few problems.
- Some PC games hardcode translating a button two press to reload, so youll need to send button 2. Others don't need reload and use button two to launch grenade, etc instead.
- For these PC games, you'll also shoot. So you might reload and shot once immediately, meaning you'll need to reload sooner, and your shot will go to 0,max, which is a miss and will decrease your score if accuracy counts.
(Only mame translates button 2 to button 1 + 0,max, since that's how the arcades saw off screen shots, and only if -offscreen_reload is enabled and isn't broken.)
- In mame, you might have the opposite problem. Besides reloading, you might shoot the grenade/etc (assuming -offscreen_reload is left disabled, and you wired the gun's second button to mouse button 2, and didn't remap mame). At 0,max. And grenades are more "costly"/limited than bullets. To get around this, you'd need to wire the gun's second button to something besides mouse button 2, and remap all the games in mame to use that other button. But with it wired to not B2, you can't use it to reload in the above hardcoded PC games.
- In mame, if you enable -offscreen reload, you might reload twice, or reload & also shoot once.
This reload headache is an issue due to the differences between how arcade games and PC games were coded. (the respective games were coded for their respective guns, and the respective guns designed for their respective games.) The whole reason -offscreen_reload was added to mame was because PC lightguns did not act like arcade lightguns.
Andy, AFAI can see you have four choices:
1. have the AimTrak act like all (other,cheap) PC lightguns and hope -offscreen_reload and all its headaches are good enough for mame users (aka screw mame).
2. set the aimTrak up like an arcade gun for mame, and screw the PC games.
3. try to find a middle ground, screwing both sides in some way(s)
4. let the user decide which way the AimTrack should lean. Hopefully this can be changed easily, like the u360 mapping. One worst case, the user has to choose which firmware to use, and is advised not to chande it too much do to multiwrite limits. (The absolute worst would be having to buy a different model.)
I like ZeroPoint's option (a #4 variant): give all buttons a separate "offscreen" button output. The user can set it to be the same as onscreen (aka arcade), or different. The most used would be sending button 2 for trigger for "PC reload", but it could be anything, such as admin buttons, pause, ect.
Or are we just spoiled with your ipac, U-HID, and especially u360 to expect a remap script to handle everything for us?