summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/entry_p.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-30 14:36:33 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-30 14:36:33 +0200
commitfadbc9808c682c1c9cc7af89a35d2e4fa3faa6dc (patch)
tree1ca878aa70cf67e6419b283cafc1ae6515b377ef /3rdparty/bgfx/examples/common/entry/entry_p.h
parent86ac81dd3399acb04e99a4ddcd3acc5a622aa4ec (diff)
Updated to latest 3rdparty (nw)
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry_p.h')
-rw-r--r--3rdparty/bgfx/examples/common/entry/entry_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry_p.h b/3rdparty/bgfx/examples/common/entry/entry_p.h
index d41ab56804b..d0ba73311c5 100644
--- a/3rdparty/bgfx/examples/common/entry/entry_p.h
+++ b/3rdparty/bgfx/examples/common/entry/entry_p.h
@@ -161,6 +161,14 @@ namespace entry
class EventQueue
{
public:
+ ~EventQueue()
+ {
+ for (const Event* ev = poll(); NULL != ev; ev = poll() )
+ {
+ release(ev);
+ }
+ }
+
void postAxisEvent(WindowHandle _handle, GamepadHandle _gamepad, GamepadAxis::Enum _axis, int32_t _value)
{
AxisEvent* ev = new AxisEvent(_handle);