Hi, argonlefou, i'm trying to use your program with a crt lightgun that i'm using and i was hoping you could help me with two issues.
For the lightgun to work it requires an external program, a flasher, to flash the screen so the gun could "see" where i'm aiming, and due to windows' framebuffer, the flasher is not fast enough and the gun misses the flash. Currently i'm using an ahk script to introduce a delay to the Left Button click, and that seems to work quite well for non rawinput games.
Is there a possibility to add an adjustable delay? So whenever i press the trigger, demulshooter will wait a specified amount of ms and only then take a reading from the guns? (Guns vid 0B9A, PID 016A)
That was request number 1.
Request number 2 is that after the delay and after it takes a reading, if it detects that the gun is pointing off screen (0x0000, 0000), it would then send a reload command (Right Click).
Is this possible?
Well, it may not really be a doable thing unfortunatelly :
You see, as opposed to Xinput devices where I need to poll values every XXmilliseconds, those kind of lightguns are sending data whenever they have to and I don't have to choosse when.
I'm not familiar with CRT guns but thechnically you shouldn't be able to get real time tracking as the only way to update X-Y coordinates is to have a trigger event (causing the flash + getting coordinates)
Which means - if the guns is acting like other RawInput guns - the only data I'll get from your gun are a "left click" events with X-Y data
And I can't delay anything as I can't have any other X-Y data untill you press the trigger again
Judging by your PID/VID (and thanks to MAME source code and google

) it seems like your gun is a "SMOG Lightgun" but I did'nt find any other information about this gun
You can try to use it with DemulShooter with the
-v option to get a debug file and share it here so that I can see how it behaves, but I don't think you'll have a lot in it (I hope I'm wrong)
On the other hand, a few people are using CRT gun here (sometimes with custom flasher and tools) and I hope they may have some ideas for you