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

Pointer sanitization: cocoa #17312

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

zoltanvb
Copy link
Contributor

Adapt the sanitized pointer handling, discussed at #17196 :

Cocoa driver specific changes:

  • make sure pointer position is always within [-0x7fff,0x7fff] by using the confined wrapper
  • enable pointer offscreen query

Changes are minimal, since I have no means to actually test it, so this is now a minimal change set, to bring it in line with the other input drivers. After the PR, pointer input should never return -0x8000, but should indicate "offscreen" state near the edges, can be tested with Remote Retropad.

Leaving this in draft until confirmation is received.

Related Pull Requests

#17169 (comment)

Reviewers

@warmenhoven (testing is welcome from anyone)

Cocoa driver specific changes:

- make sure pointer position is always within [-0x7fff,0x7fff] by using the confined wrapper
- enable pointer offscreen query
@LibretroAdmin LibretroAdmin marked this pull request as ready for review December 30, 2024 05:42
@LibretroAdmin
Copy link
Contributor

Let us know what you think @warmenhoven

@warmenhoven
Copy link
Contributor

Taking a look now

@warmenhoven
Copy link
Contributor

lgtm. Thanks

@LibretroAdmin LibretroAdmin merged commit b66263a into libretro:master Dec 30, 2024
27 checks passed
@zoltanvb zoltanvb deleted the pointer_sanitize_cocoa branch January 9, 2025 21:41
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