# File lib/extras/as_menu.rb, line 6 def add_actions action(AS::Event.for_key(:Key_ESCAPE, false)){stop} action(AS::Event.for_mbutton(1)) do mouse_down end action(AS::Event.for_mbutton(1, false)) do mouse_up end action(AS::Event.for_mouse) do mouse_moved end end