![]() glfw/glfw/blob/master/tests/events.c#L625-L640 The test events.c shows how to register callbacks for all events: You should look for a C or C++ tutorial and also read the documentation, for example the GLFW input documentation has an example of how to set up a key callback.Īdditionally GLFW has a set of examples and test code. Your problems are due to Java being substantially different from C and C++. (GLFW and GLAD are installed in the project level, not in MinGW) Both were installed today, and I am compiling on Windows 10 圆4 using MinGW圆4 that came with MSys2 with CLion). (I am using the latest version of GLFW, with the latest version of GLAD. My code compiles with no errors without the Input class, but with it, I get errors where GLFWKe圜allback does not exist. I tried googling for more examples or references of how to implement input for GLFW, but didn’t find anything useful. I am not sure if Java has different types, or if it has something to do with the other packages that come with LWJGL. Were these types removed? The tutorial isn’t even a year old yet. ![]() ![]() So I tried it with some other types I found with no success. I try to translate it to C/C++ GLFW code, but the above types do not exist. I am at this part of this tutorial, and I am stuck translating the code to C/C++.
0 Comments
Leave a Reply. |