rust-sdl2 v0.32 Release Notes

  • PR #790: Added missing window_id field to Event::DropFile

    πŸ›  PR #789: Audio Safety Fixes

    πŸ‘ PR #785: Vulkan Support

    PR #782

    • 🚚 Move ffi of features (mixer, ...) into sys
    • ⚑️ Updated SDL2's default version to 2.0.8

    πŸ›  PR #780: Fixed a panic in keyboard::Mod

    PR #775: Added get_platform

    PR #774: add_timer is now must_use

    PR #764: impl Hash for Point and Rect

    🏁 PR #763: Allow -sys to build for windows-gnu target

    PR #751: πŸ’₯ Breaking change gl_setswap_interval now returns a Result instead of a bool.

    PR #759: Expose Joystick power level

    PR #751

    • πŸ›  Fix memory leak in filesystem::base_path()
    • πŸ›  Fix memory leak on ClipboardUtil::clipboard_text()

    PR #740: Implement Debug for Event

    PR #737: Fix ClipboardUtil::set_clipboard_text to return an Ok when it went well.

    PR #733: Add video::border_size -> Result<(u16, u16, u16, u16), String> equivalent of SDL_GetWindowBorderSize()

    PR #732: Implemented From<(u8, u8, u8)> and From<(u8, u8, u8, u8)> for pixels::Color. Canvas.set_draw_color can now be called with tuples or other types which implements Into<pixels::Color>

    PR #279

    • πŸ’₯ Breaking change set_video_minimize_on_focus_lost was renamed to …minimize_on_focus_loss, as it should be. As a bonus, it works now.
    • Although this is a breaking change, this function was not working in the first place, so this is hardly a true breaking change