From f59d2329c904e8cb5f6509050444bf2aee4b8f65 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 29 Nov 2015 09:32:52 +0100 Subject: Move event skip optimization fromNativeWindowXYZ to EventHandler --- plugingui/nativewindow_pugl.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugingui/nativewindow_pugl.cc') diff --git a/plugingui/nativewindow_pugl.cc b/plugingui/nativewindow_pugl.cc index 0864c2b..b9dcd54 100644 --- a/plugingui/nativewindow_pugl.cc +++ b/plugingui/nativewindow_pugl.cc @@ -243,4 +243,14 @@ Event *NativeWindowPugl::getNextEvent() return event; } +Event *NativeWindowPugl::peekNextEvent() +{ + Event *event = nullptr; + + if(!eventq.empty()) { + event = eventq.front(); + } + return event; +} + } // GUI:: -- cgit v1.2.3