Hey guys, I can’t find anything on this on Google, I am not quite sure what I am doing wrong.
So I have two methods setup to register key presses using the glfwSetMouseButtonCallback and glfwSetKeyCallback. The methods are in this file, https://github.com/IRCSS/ToyRenderer/blob/master/src/InputMaster.cpp
The call backs work fine on their own, used in combination, they also work fine one way but not the other way around. If I press for example the right mouse key, hold and press for example keyboard S key, I get callbacks from both mouse and keyboard, but if I hold S key first and then click the mouse button right, I wont get callback for mouse button, only for the keyboard key. Then after I let go of the S key, I need to press the mouse button at least twice to get a callback. Keyboad with Keyboard works without a problem.
I am on windows 10, visual studio 2018 and GLFW 3.3. The binding of my function with the callback happens in the constructor of the InputMaster. InputMaster is created in Application.cpp https://github.com/IRCSS/ToyRenderer/blob/master/src/Application.cpp
Any ideas what I am doing wrong? Btw I am printing out these information first thing as the callback is called, so I doubt the issue is on the abstraction I am adding on top.