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

Discrepancy Between Returned Mouse Coordinates and Actual Cursor Position in Ruby #2695

Open
hadamak opened this issue Oct 5, 2024 · 0 comments · May be fixed by #2698
Open

Discrepancy Between Returned Mouse Coordinates and Actual Cursor Position in Ruby #2695

hadamak opened this issue Oct 5, 2024 · 0 comments · May be fixed by #2698

Comments

@hadamak
Copy link

hadamak commented Oct 5, 2024

There is a discrepancy between the returned coordinates from the mouse method and the actual mouse cursor position in Ruby. When the cursor is visually placed at (0,0) on the screen, the mouse method returns coordinates of (8,4). The returned value seems to be consistently offset by a certain amount from the screen coordinates.

# script:  ruby

def TIC
	cls 13
	rect mouse[:x],mouse[:y],8,8,3
	print "#{mouse[:x]},#{mouse[:y]}"
end

video1

@anescient anescient linked a pull request Oct 7, 2024 that will close this issue
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 a pull request may close this issue.

1 participant