diff options
author | David Robillard <d@drobilla.net> | 2020-11-26 09:35:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-26 09:35:23 +0100 |
commit | ee6aebafa72303dc01c91a5ca069fbe7188b1a14 (patch) | |
tree | df9e8560095b8038fa7118ac1d03057dc9e67bd3 /examples/pugl_vulkan_cxx_demo.cpp | |
parent | 2d90c04eef376b406c65f5d3553757415fb9806f (diff) | |
download | pugl-ee6aebafa72303dc01c91a5ca069fbe7188b1a14.tar.gz pugl-ee6aebafa72303dc01c91a5ca069fbe7188b1a14.tar.bz2 pugl-ee6aebafa72303dc01c91a5ca069fbe7188b1a14.zip |
Remove stub event handlers from pugl::View
This was a bit weird since event dispatching can be handled by some other
object. Just remove them, and have clients use a catch-all template to handle
events that are not handled specially.
Diffstat (limited to 'examples/pugl_vulkan_cxx_demo.cpp')
-rw-r--r-- | examples/pugl_vulkan_cxx_demo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/pugl_vulkan_cxx_demo.cpp b/examples/pugl_vulkan_cxx_demo.cpp index b4e04ef..154bbaf 100644 --- a/examples/pugl_vulkan_cxx_demo.cpp +++ b/examples/pugl_vulkan_cxx_demo.cpp @@ -1385,7 +1385,11 @@ public: setEventHandler(*this); } - using pugl::View::onEvent; + template<PuglEventType t, class Base> + pugl::Status onEvent(const pugl::Event<t, Base>&) noexcept + { + return pugl::Status::success; + } pugl::Status onEvent(const pugl::ConfigureEvent& event); pugl::Status onEvent(const pugl::UpdateEvent& event); |