Added Window#input_hijack to allow objects to get exclusive access to button_down/up callbacks, improved Chat widget

This commit is contained in:
2021-06-03 15:14:06 +00:00
parent ec2b32ff92
commit 0fe1d85924
6 changed files with 107 additions and 16 deletions

View File

@@ -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