diff options
author | 2015-03-30 14:36:33 +0200 | |
---|---|---|
committer | 2015-03-30 14:36:33 +0200 | |
commit | fadbc9808c682c1c9cc7af89a35d2e4fa3faa6dc (patch) | |
tree | 1ca878aa70cf67e6419b283cafc1ae6515b377ef /3rdparty/bgfx/examples/common/entry/entry_p.h | |
parent | 86ac81dd3399acb04e99a4ddcd3acc5a622aa4ec (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.h | 8 |
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); |