| 850 | } |
| 851 | |
| 852 | GLFWAPI 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 | |
| 862 | GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun) |
| 863 | { |
no outgoing calls
no test coverage detected