Discrepancy Between Returned Mouse Coordinates and Actual Cursor Position in Ruby
Closed this issue · 0 comments
hadamak commented
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