Main > Lightguns
DemulShooter (Dual light gun on DEMUL, Model2, Dolphin, Silent Hill, etc...)
<< < (716/726) > >>
purbeast:

--- Quote from: argonlefou on April 29, 2025, 05:42:39 am ---No conflict, simply expected behavior

The whole point of DemulShooter and RawInput is to read input directly from the controller (thus beeing able to separate them, which is something Windows is not doing for mice).
So using Autohotkey, or any other mouse-simulating program (NeatMouse seems to be that kind, although I don't really know it) will never trigger anything if DemulShooter has some kind of "Mouse" device selected because those simulated inputs are not comming from the real device.

The virtual keys options were made for that purpose, as 10+ years ago Lightgun options were very, very limited (mostly EMS TOP GUN, and some Aimtrak.) and some only had a trigger and no extra button.
Listening to Keyboard events (even virtual, coming from AHK or IPAC devices) helped binding necessary buttons when Lightgun only had a trigger.

But, again, as your Lightguns are detected as HID controllers (Joystick) in DemulShooter_GUI, all of this stuff do not apply because .....well it was not designed to : Joypad support was added mostly for WiiMotes/Joypads having a whole lot of buttons so adding virtual keys was not needed.
Aliens Arcade analog mounted gun are nowadays also very popular but they also have extra buttons.
So selecting a HID device in DemulShooter_GUI will make DemulShooter listen to this device and use the mapped buttons for Shoot/Reload/Action
Mouse is not used at all in that case

Going back to Cxbx-Reloaded, I had a short time to test on my computer and :
- Native button in emulator input is Triggers - LEFT (just tried with MS controller Duke) to activate Bullet Time in Vcop3
- And yes, using DemulShooter will override Trigger/Reload/Bullet Time original inputs so that it can inject custom values, so these 3 buttons will not work anymore once DemulShooter is hooked

So, unfortunatelly, you have a very specific setup which - in the current state - will not allow you to map a keyboard/pedal/virtual button to that specific action....

--- End quote ---

Thanks for the detailed explanation.

Do you know why the Y button would act differently for me in vcop3 versus the vcop3_t option, with demulshooter hooked in?  As in, vcop3 the Y mapping reloads for me whereas in vcop3_t it actives the pedal?

You also mention that the 3 buttons will not work anymore, however the reload button mapping seems to be the only one of the 3 that still works for some reason.  Is THAT actually a bug and it shouldn't be happening?

You do mention using a Duke controller.  I do remember I did pick the Microsoft S controller when I was testing it.  I wouldn't think that the controller type, since they are both Xbox, would have different mappings for bullet time.

Initially I was using v10.15.1 I believe but then I also tried the most recent version and had the same behavior.

EDIT:

The thing that stinks too is it seems cxbx has native joystick controller as well with my device, however it doesn't appear there is a way I can have a mixed input config where I use my gun AND keyboard.  When I was messing with this however, it did seem like the accuracy was better with DS being hooked in rather than using the cxbx joystick support.  I don't know if it was actually different accuracy wise or if it was because I had the cursor still showing when I first did that and it was just messing with me.
purbeast:
Well thanks to DemulShooter being open source, I took a look at the code for vcop3 and figured out where things had to be changed to de-hook the bullet time button, and my buddy who knows ASM looked at it and figured out the line of code I could change to make it not look for bullet time in DS.

So now I got a custom build of it where I can use my pedal for bullet time and it is working perfectly!

Thanks again for all the hard work.  Looking at that code I am like damn.  I am a web developer so that stuff is pretty foreign to me.
argonlefou:

--- Quote from: purbeast on April 29, 2025, 09:57:24 pm ---Well thanks to DemulShooter being open source, I took a look at the code for vcop3 and figured out where things had to be changed to de-hook the bullet time button, and my buddy who knows ASM looked at it and figured out the line of code I could change to make it not look for bullet time in DS.

So now I got a custom build of it where I can use my pedal for bullet time and it is working perfectly!

Thanks again for all the hard work.  Looking at that code I am like damn.  I am a web developer so that stuff is pretty foreign to me.

--- End quote ---

Glad to know you managed to work that out that way  ;)
Ginsonic:
Hi Argon,
Flycast 2.5 is released. In case, you have some spare time, it would be great, if you could release a compatible DS version, thanks a lot!
argonlefou:

--- Quote from: Ginsonic on May 07, 2025, 08:10:47 am ---Hi Argon,
Flycast 2.5 is released. In case, you have some spare time, it would be great, if you could release a compatible DS version, thanks a lot!

--- End quote ---

Untill I can push a new update, unzip the joined file in /memorydata/flycast folder of your demulshooter
Navigation
Message Index
Next page
Previous page

Go to full version