mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
36 lines
924 B
Ruby
36 lines
924 B
Ruby
#===============================================================================
|
|
#
|
|
#===============================================================================
|
|
module Input
|
|
USE = C
|
|
BACK = B
|
|
ACTION = A
|
|
JUMPUP = X
|
|
JUMPDOWN = Y
|
|
SPECIAL = Z
|
|
AUX1 = L
|
|
AUX2 = R
|
|
|
|
unless defined?(update_KGC_ScreenCapture)
|
|
class << Input
|
|
alias update_KGC_ScreenCapture update
|
|
end
|
|
end
|
|
|
|
def self.update
|
|
update_KGC_ScreenCapture
|
|
pbScreenCapture if trigger?(Input::F8)
|
|
end
|
|
end
|
|
|
|
#===============================================================================
|
|
#
|
|
#===============================================================================
|
|
module Mouse
|
|
# Returns the position of the mouse relative to the game window.
|
|
def self.getMousePos(catch_anywhere = false)
|
|
return nil unless Input.mouse_in_window || catch_anywhere
|
|
return Input.mouse_x, Input.mouse_y
|
|
end
|
|
end
|