summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 23891999..e19a9482 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -662,6 +662,14 @@ iBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {
662 iWidget *widget = *i.value; 662 iWidget *widget = *i.value;
663 if (isVisible_Widget(widget) && dispatchEvent_Widget(widget, ev)) { 663 if (isVisible_Widget(widget) && dispatchEvent_Widget(widget, ev)) {
664#if 0 664#if 0
665 if (ev->type == SDL_KEYDOWN) {
666 printf("[%p] %s:'%s' (on top) ate the key\n",
667 widget, class_Widget(widget)->name,
668 cstr_String(id_Widget(widget)));
669 fflush(stdout);
670 }
671#endif
672#if 0
665 if (ev->type == SDL_MOUSEMOTION) { 673 if (ev->type == SDL_MOUSEMOTION) {
666 printf("[%p] %s:'%s' (on top) ate the motion\n", 674 printf("[%p] %s:'%s' (on top) ate the motion\n",
667 widget, class_Widget(widget)->name, 675 widget, class_Widget(widget)->name,
@@ -701,6 +709,14 @@ iBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {
701 } 709 }
702 if (dispatchEvent_Widget(child, ev)) { 710 if (dispatchEvent_Widget(child, ev)) {
703#if 0 711#if 0
712 if (ev->type == SDL_KEYDOWN) {
713 printf("[%p] %s:'%s' ate the key\n",
714 child, class_Widget(child)->name,
715 cstr_String(id_Widget(child)));
716 fflush(stdout);
717 }
718#endif
719#if 0
704 if (ev->type == SDL_MOUSEMOTION) { 720 if (ev->type == SDL_MOUSEMOTION) {
705 printf("[%p] %s:'%s' (on top) ate the motion\n", 721 printf("[%p] %s:'%s' (on top) ate the motion\n",
706 child, class_Widget(child)->name, 722 child, class_Widget(child)->name,