GLFWkeyfun

The function pointer type for keyboard key callbacks.

This is the function pointer type for keyboard key callbacks. A keyboard key callback function has the following signature:

void function_name(GLFWwindow* window, int key, int scancode, int action, int mods)
extern (C) @nogc nothrow __gshared
alias GLFWkeyfun = void function(GLFWwindow*, int, int, int, int)

Meta

Since

Added in version 1.0. @glfw3 Added window handle, scancode and modifier mask parameters.

Ingroup: input