Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Beetle PSX HW] Lightgun API is broken #501

Open
Phiben opened this issue May 8, 2019 · 7 comments
Open

[Beetle PSX HW] Lightgun API is broken #501

Phiben opened this issue May 8, 2019 · 7 comments

Comments

@Phiben
Copy link

Phiben commented May 8, 2019

Since the release of the Lightgun API #271 by @hiddenasbestos back in 2017 it never worked in Beetle PSX HW.

It kind of works in the non-HW version of the core but only at native resolution. If the resolution is higher than native, the gun alignment is completely off.

In Beetle PSX HW (OpenGL and Vulkan) it simply doesn't work at all. Neither at native resolution nor at upscaled resolutions.

@chasburger
Copy link

chasburger commented Jun 16, 2019

Yeah I've run into this as well. Lightgun functionality in Bettle PSX HW when using the OpenGL or Vulkan driver is non-existent. The trigger and button inputs are sent, but the cursor is not drawn.

I can confirm that using higher than native internal resolution in the non-HW version messes with the alignment as well.

I will say that the lightgun API functions in Beetle PSX HW if you use DX11 or 12 though. Cursor is drawn and everything works as it should. So I just use that as a workaround for now. Slightly irritating to have to load another video driver and restart the RetroArch frontend, but it's not the end of the world.

@rz5
Copy link
Contributor

rz5 commented Jun 16, 2019

@chasburger Beetle PSX HW only has hardware renderers for OpenGL and Vulkan. If you're using RetroArch with a video driver different from gl, glcore and vulkan, that's solely software rendering.

@ggrtk
Copy link
Collaborator

ggrtk commented Nov 26, 2019

Diagnosis of the alignment issues: #471 (comment)

As for the lightgun not showing cursor for hardware renderers, that's probably going to require an RSX interface hook in mednafen/psx/frontio.cpp for either the crosshair_plot() or DrawCrosshairs() function. These draw functions also need to be adjusted to scale the cursor's size up proportionally for the software renderer at higher internal resolutions.

@Darknior
Copy link

Darknior commented Jul 5, 2022

Hi everyone, some news about this problem ? Some solution to solve it ?
Thanks

@Tovarichtch
Copy link

I've tested in software rendering and indeed, it works. Hardware rendering is the problem here, whatever the API used. It would be great to fix this, since it's the best core with all the light guns required to play all gun games (including Area 51 which is not possible to play without the Justifier, and it has no GunCon conversion patch).

@huco95
Copy link

huco95 commented Aug 18, 2023

Hi, any news on this? I can not make lightgun works on linux :(

@SeongGino
Copy link

SeongGino commented Dec 11, 2023

Can confirm that this still seems to be broken with hardware rendering specifically, as it works totally fine in software mode (with all the performance caveats that it brings).

At least the few Justifier-only games on PS1 are predominantly 2D in nature (so for example, Lethal Enforcers, Area 51 and Maximum Force wouldn't benefit much, if at all), though this might suck a little for the likes of Crypt Killer, Project Horned Owl and Die Hard Trilogy which could look much better.

For now, the workaround will have to be to run Beetle-HW for those Justifier-only games in software mode, and run GunCon games in SwanStation if you desire HW rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants