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

Add lightgun support to cocoa input driver #17318

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

drhelius
Copy link
Contributor

Description

The current cocoa input driver does not support RETRO_DEVICE_LIGHTGUN, thus MacOS and iOS can't control this device and cores must use an alternative like RETRO_DEVICE_POINTER.

This PR adds support for lightgun input to the cocoa input driver using an implementation similar to those found in dinput and x11_input drivers.

I was able to test it on macOS but not on iOS.

Reviewers

@warmenhoven @zoltanvb

@zoltanvb
Copy link
Contributor

The deprecated relative lightgun coordinates can be removed. I have not deleted them from other drivers, but the deprecation notice was added to libretro.h at least 6 years ago so nothing should be using it. Also, I believe it will not return correct value anyway (it should behave like a relative mouse, sending a delta since last query). Otherwise looks OK to me.

@drhelius
Copy link
Contributor Author

Just removed deprecated relative lightgun coordinates and squashed.

@LibretroAdmin LibretroAdmin merged commit b5a62fc into libretro:master Jan 1, 2025
27 checks passed
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.

3 participants