Files
infinitefusion-e18/Data/Scripts/020_System and utilities/001_PSystem_Controls.rb
Roza 1f2309c4d2 Remove Win32API calls & upgrade to modern Ruby (#96)
* Win32API removal + Ruby 3 updates
* Update binaries to match mkxp-z 2.1
2021-02-25 22:09:59 +00:00

10 lines
252 B
Ruby

module Mouse
module_function
# Returns the position of the mouse relative to the game window.
def getMousePos(catch_anywhere=false)
return nil unless System.mouse_in_window || catch_anywhere
return Input.mouse_x, Input.mouse_y
end
end