diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-08 19:14:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-08 19:29:07 +0200 |
commit | 0979c285c0cdaf7efc65bdf86882db20596e1de7 (patch) | |
tree | d58393521280fa1725c4113951d1e87cecf8482f /plugingui/nativewindow_pugl.cc | |
parent | 0531409611867ae8dad711e52d6534fa634d40cc (diff) |
Make pugl work with testmain.
Diffstat (limited to 'plugingui/nativewindow_pugl.cc')
-rw-r--r-- | plugingui/nativewindow_pugl.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugingui/nativewindow_pugl.cc b/plugingui/nativewindow_pugl.cc index 59f03b1..f94b82b 100644 --- a/plugingui/nativewindow_pugl.cc +++ b/plugingui/nativewindow_pugl.cc @@ -272,7 +272,6 @@ void NativeWindowPugl::onDisplay(PuglView* view) Window& window = native->window; //window.redraw(); - printf("!!! %p %d %d\n", native, (int)window.wpixbuf.width, (int)window.wpixbuf.height); if((window.wpixbuf.width < 16) || (window.wpixbuf.height < 16)) { return; @@ -359,9 +358,8 @@ void NativeWindowPugl::onKeyboard(PuglView* view, bool press, uint32_t key) KeyEvent* e = new KeyEvent(); e->direction = press ? Direction::down : Direction::up; - printf("%d\n", key); - - switch(key) { + switch(key) + { case PUGL_KEY_LEFT: e->keycode = Key::left; break; case PUGL_KEY_RIGHT: e->keycode = Key::right; break; case PUGL_KEY_UP: e->keycode = Key::up; break; @@ -378,8 +376,6 @@ void NativeWindowPugl::onKeyboard(PuglView* view, bool press, uint32_t key) e->text.assign(1, (char)key); } - printf("\t text: %s\n", e->text.c_str()); - native->eventq.push_back(e); } |