There was already an implementation using SDL2 in the SDL backend, but this way we have it available also when using the SDL 1.