pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

USB: Dual Cursor Lightgun

Open RedDevilus opened this issue 7 months ago • 13 comments

Description of Changes

There seems to be an issue with how the MTGS handles the enumeration and drawing, updating for the replaced crosshairs icons that the users provides like in a .png format. Master would be random but tends to only show USB Device 1 crosshair. But now 2 at same time should work. Hopefully gets rid of https://github.com/PCSX2/pcsx2/issues/11423 2025-05-23_03-36 2025-05-23_03-35 2025-05-23_04-28

Rationale behind Changes

The niche lightgun users also using niche dual replaced icons was certainly a bug as you get ghost inputs if not the texture was carefully drawn.

Suggested Testing Steps

Normal games work, but best in any game that uses GunCon2 aka lightgun games.

Did you use AI to help find, test, or implement this issue or feature?

No, this mess is my own.

RedDevilus avatar May 23 '25 02:05 RedDevilus

Thanks for the PR! ❤️

It seems to work fine for me with any renderer but GL, when using GL I'm getting a crash on game start:

GL-crash.zip

bslenul avatar May 23 '25 09:05 bslenul

@bslenul Can you create a gs dump with a renderer that works where it would crash and post it here?

lightningterror avatar May 23 '25 10:05 lightningterror

Sure, this is with "Automatic" (so VK in my case): gun-gs-dump.zip

The dump loads fine with all renderers expect GL (as long as I use at least 1 PNG as a crosshair).

bslenul avatar May 23 '25 11:05 bslenul

Dump works fine here, are you sure this dump crashes on gl?

image

lightningterror avatar May 23 '25 11:05 lightningterror

It won't crash unless you've set a PNG crosshair, which I can't see on your screen.

Basically it looks like this for me with anything but GL (notice the crosshairs in the middle of the screen):

image

edit: Updated screenshot with OSD stuff.

bslenul avatar May 23 '25 11:05 bslenul

Can confirm, no more crash with GL with that change! :+1:

bslenul avatar May 23 '25 13:05 bslenul

Unrelated with that last change, but any idea why I'm getting this with this PR when running a Debug build?

image

image

bslenul avatar May 23 '25 13:05 bslenul

Can confirm, no more crash with GL with that change! 👍

Argh, no more crash but now P2 cursor doesn't always appear again.

bslenul avatar May 23 '25 13:05 bslenul

Can confirm, no more crash with GL with that change! 👍

Argh, no more crash but now P2 cursor doesn't always appear again.

Yup, if you have both crosshairs images with that fix in, it just reverts behaviour. Only shows first player crosshair and before showed both.

RedDevilus avatar May 23 '25 16:05 RedDevilus

Is this also related to #4472

gamerx1-cyber avatar May 29 '25 18:05 gamerx1-cyber

Is this also related to #4472

This doesn't touch firewire and iLink, those are just stubbed aka placebo files in the codes still so we don't do that functionality.

It's just visual indicators for custom crosshairs which doesn't affect in-game parts.

RedDevilus avatar May 29 '25 20:05 RedDevilus

Is this also related to #4472

This doesn't touch firewire and iLink, those are just stubbed aka placebo files in the codes still so we don't do that functionality.

It's just visual indicators for custom crosshairs which doesn't affect in-game parts.

Ahh I see, thank you

gamerx1-cyber avatar May 29 '25 20:05 gamerx1-cyber

With the latest changes PCSX2 hangs for me with custom crosshair PNG when launching a game in Big Picture mode.

bslenul avatar May 31 '25 21:05 bslenul