mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 16:12: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:
@@ -69,6 +69,8 @@ class IMICFPS
|
||||
window.director.map.entities.each do |entity|
|
||||
entity.button_down(id) if defined?(entity.button_down)
|
||||
end
|
||||
|
||||
@hud.button_down(id)
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
@@ -81,6 +83,8 @@ class IMICFPS
|
||||
window.director.map.entities.each do |entity|
|
||||
entity.button_up(id) if defined?(entity.button_up)
|
||||
end
|
||||
|
||||
@hud.button_up(id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user