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

[enhancement] Mouse Controls? #816

Open
Norbtails97 opened this issue Apr 12, 2024 · 4 comments · May be fixed by #788
Open

[enhancement] Mouse Controls? #816

Norbtails97 opened this issue Apr 12, 2024 · 4 comments · May be fixed by #788
Assignees
Labels
enhancement New feature or request

Comments

@Norbtails97
Copy link

I can put keyboard controls on the emulator, but what about using the mouse? If I want to play Duck Hunt, I need the zapper controls. If I want to play Mario Paint, I need the SNES Mouse. Mabe if you ADD a easy, user-friendly mouse controls to emulate the mouse/Light Gun controls; that will be nice.

@michael-j-green
Copy link
Contributor

@ethanaobrien; we might need to revisit that discussion on mouse capture.

Thinking we do this:

  • provide an option to enable mouse capture on canvas click - this option should have a corresponding variable exposed to the host page (default false)
  • if that first option is enabled, then provide another option to enable auto-capture - this option should have a corresponding variable exposed to the host page (default false)

Mouse capture is a requirement for many platforms, and mouse capture means that we don't have to do any funky scaling to match the host mouse movements to the emulation.

@ethanaobrien
Copy link
Member

Yeah that works, we do also need to pass device ids to retroarch for lightgun/mouse related items too in the end

@michael-j-green
Copy link
Contributor

Great :) I'll build out the mouse capture functions this week, but I'll have to have a chat with you around the device id component.

@michael-j-green michael-j-green self-assigned this Apr 16, 2024
@michael-j-green michael-j-green added the enhancement New feature or request label Apr 16, 2024
@michael-j-green
Copy link
Contributor

Work to complete will be in #788

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

Successfully merging a pull request may close this issue.

3 participants