Function SDL_GetScancodeFromName

pub unsafe extern "C" fn SDL_GetScancodeFromName(
    name: *const i8,
) -> SDL_Scancode
Available on crate feature dep_sdl3 only.
Expand description

Get a scancode from a human-readable name.

§Parameters

  • name: the human-readable scancode name.

§Return value

Returns the SDL_Scancode, or SDL_SCANCODE_UNKNOWN if the name wasn’t recognized; call SDL_GetError() for more information.

§Thread safety

This function is not thread safe.

§Availability

This function is available since SDL 3.2.0.

§See also