mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Added Window#input_hijack to allow objects to get exclusive access to button_down/up callbacks, improved Chat widget
This commit is contained in:
@@ -32,5 +32,13 @@ class IMICFPS
|
||||
def update
|
||||
@hud_elements.each(&:update)
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
@hud_elements.each { |e| e.button_down(id) }
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
@hud_elements.each { |e| e.button_up(id) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user