Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glfwSetKeyCallback(window, [this](GLFWwindow * window, int key, int scancode, int action, int mods){
- addCommand(m_events.at(key));
- });
- glfwSetWindowUserPointer(window, this);
- glfwSetKeyCallback(window, [](GLFWwindow * window, int key, int scancode, int action, int mods){
- Window * win = static_cast<Window *>(glfwGetWindowUserPointer(window));
- win->addCommand(win->m_events.at(key));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement