Skip to content

Fix ruby mouse coordinates#2698

Merged
nesbox merged 1 commit intonesbox:mainfrom
anescient:rubymouse
Oct 16, 2024
Merged

Fix ruby mouse coordinates#2698
nesbox merged 1 commit intonesbox:mainfrom
anescient:rubymouse

Conversation

@anescient
Copy link
Copy Markdown
Contributor

This change makes the Ruby mouse() function take coordinates from the core api rather than directly from memory.

Resolves #2695

@MineRobber9000
Copy link
Copy Markdown
Contributor

If the memory has the wrong values, I would imagine it'd make more sense to fix whatever's putting the wrong values in memory rather than just taking the mouse coordinates from a different place.

@anescient
Copy link
Copy Markdown
Contributor Author

I don't think anything is wrong; I think it's by design. There's a border area so raw mouse coordinates on the window won't match the drawable area.

@nesbox nesbox merged commit 9724aed into nesbox:main Oct 16, 2024
@anescient anescient deleted the rubymouse branch October 17, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Discrepancy Between Returned Mouse Coordinates and Actual Cursor Position in Ruby

3 participants