Added conversion of things in Game Variables in save data, renamed some files

This commit is contained in:
Maruno17
2021-04-17 22:39:36 +01:00
parent cef2beb063
commit 96c68e79a3
41 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
module Input
USE = C
BACK = B
ACTION = A
AUX1 = X
AUX2 = Y
SPECIAL = Z
JUMPUP = L
JUMPDOWN = R
unless defined?(update_KGC_ScreenCapture)
class << Input
alias update_KGC_ScreenCapture update
end
end
def self.update
update_KGC_ScreenCapture
if trigger?(Input::F8)
pbScreenCapture
end
end
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