glfwGetInputMode function
! @brief Returns the value of an input option for the specified window.
This function returns the value of an input option for the specified window. The mode must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS, @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or @ref GLFW_RAW_MOUSE_MOTION.
@paramin
window The window to query.
@paramin
mode One of GLFW_CURSOR
, GLFW_STICKY_KEYS
,
GLFW_STICKY_MOUSE_BUTTONS
, GLFW_LOCK_KEY_MODS
or
GLFW_RAW_MOUSE_MOTION
.
@errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_INVALID_ENUM.
@thread_safety This function must only be called from the main thread.
@sa @ref glfwSetInputMode
@since Added in version 3.0.
@ingroup input
GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode)
Implementation
int glfwGetInputMode(Pointer<GLFWwindow> window, int mode) {
final glfwGetInputModeLookupFunction = libglfw.lookupFunction<
Int32 Function(Pointer<GLFWwindow> window, Int32 mode),
int Function(Pointer<GLFWwindow> window, int mode)>('glfwGetInputMode');
return glfwGetInputModeLookupFunction(window, mode);
}