mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
16 lines
314 B
Ruby
16 lines
314 B
Ruby
module Input
|
|
USE = C
|
|
BACK = B
|
|
SPECIAL = A
|
|
end
|
|
|
|
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
|