Function SDL_GetScancodeFromKey

pub unsafe extern "C" fn SDL_GetScancodeFromKey(
    key: i32,
) -> SDL_Scancode
Available on crate feature dep_sdl2 only.
Expand description

Get the scancode corresponding to the given key code according to the current keyboard layout.

See SDL_Scancode for details.

\param key the desired SDL_Keycode to query \returns the SDL_Scancode that corresponds to the given SDL_Keycode.

\since This function is available since SDL 2.0.0.

\sa SDL_GetKeyFromScancode \sa SDL_GetScancodeName