MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / glfwSetKeyCallback

Function glfwSetKeyCallback

extern/glfw/src/input.c:852–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* handle, GLFWkeyfun cbfun)
853{
854 _GLFWwindow* window = (_GLFWwindow*) handle;
855 assert(window != NULL);
856
857 _GLFW_REQUIRE_INIT_OR_RETURN(NULL);
858 _GLFW_SWAP_POINTERS(window->callbacks.key, cbfun);
859 return cbfun;
860}
861
862GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun)
863{

Callers 4

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected