glfwGetInputMode

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.

extern (C) @nogc nothrow __gshared
int
glfwGetInputMode

Parameters

window GLFWwindow*

The window to query.

mode int

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

Meta

Since

Added in version 3.0.

Ingroup: input