glfwGetKeyScancode

Returns the platform-specific scancode of the specified key.

This function returns the platform-specific scancode of the specified key.

If the key is GLFW_KEY_UNKNOWN or does not exist on the keyboard this method will return -1.

extern (C) @nogc nothrow __gshared
int
glfwGetKeyScancode
(
int key
)

Parameters

key int

Return Value

Type: int

The platform-specific scancode for the key, or -1 if an error occurred.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.

Thread Safety

This function may be called from any thread.

@sa @ref input_key

Meta

Since

Added in version 3.3.

Ingroup: input