You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
337B

  1. #include "widgets.hpp"
  2. namespace rack {
  3. void MenuOverlay::onDragDrop(Widget *origin) {
  4. if (origin == this) {
  5. // deletes `this`
  6. gScene->setOverlay(NULL);
  7. }
  8. }
  9. Widget *MenuOverlay::onHoverKey(Vec pos, int key) {
  10. Widget *w = Widget::onHoverKey(pos, key);
  11. if (w) return w;
  12. // Steal all keys
  13. return this;
  14. }
  15. } // namespace rack