Skip to content
Snippets Groups Projects
Verified Commit 04214423 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#60] Added initial locking of events

parent 4f71382d
No related branches found
No related tags found
1 merge request!65Resolve "Kamera - Steuerung mittels Controller"
Pipeline #25908 passed
...@@ -15,6 +15,12 @@ namespace vkcv { ...@@ -15,6 +15,12 @@ namespace vkcv {
: m_window(window) { : m_window(window) {
glfwSetWindowUserPointer(m_window, this); glfwSetWindowUserPointer(m_window, this);
this->e_mouseButton.lock();
this->e_mouseMove.lock();
this->e_resize.lock();
this->e_key.lock();
this->e_mouseScroll.lock();
// combine Callbacks with Events // combine Callbacks with Events
glfwSetMouseButtonCallback(m_window, Window::onMouseButtonEvent); glfwSetMouseButtonCallback(m_window, Window::onMouseButtonEvent);
glfwSetCursorPosCallback(m_window, Window::onMouseMoveEvent); glfwSetCursorPosCallback(m_window, Window::onMouseMoveEvent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment