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

Support for lightgun in Wayland input driver #17152

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

zoltanvb
Copy link
Contributor

@zoltanvb zoltanvb commented Nov 2, 2024

Description

Re-use the pointer calculation to return also lightgun coordinates. Offscreen calculation adapted from other drivers.

There are multiple open questions regarding how mouse is handled, but this modification should not do any harm, just enable another use case when the core asks for lightgun coordinates (which will be provided by the generic Wayland pointer logic).

Just for reference, open issues are:

  • input drivers returning (0,0) when pointer goes out of viewport (discussed in Discord programming-frontend)
  • Wayland having only a single pointer (discussed in linked issue)

Related Issues

#16886 (discussion included lightgun)

Re-use the pointer calculation to return also lightgun coordinates.
Offscreen calculation adapted from other drivers.
@LibretroAdmin LibretroAdmin merged commit d5dd368 into libretro:master Nov 4, 2024
27 checks passed
@zoltanvb zoltanvb deleted the wayland_lightgun_update branch November 18, 2024 21:07
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

Successfully merging this pull request may close these issues.

2 participants