Skip to content

Commit

Permalink
update SDL to 3.2.2, release sdl3-sys 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maia-s committed Feb 2, 2025
1 parent 6f2aa36 commit cb5d7de
Show file tree
Hide file tree
Showing 17 changed files with 134 additions and 43 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdl3-src/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sdl3-src"
version = "3.2.0"
version = "3.2.2"
edition = "2021"
authors = ["SDL developers"]
license = "Zlib"
Expand Down
2 changes: 1 addition & 1 deletion sdl3-src/SDL
Submodule SDL updated 204 files
8 changes: 4 additions & 4 deletions sdl3-src/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ pub const SOURCE_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/SDL");
pub const SOURCE_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "\\SDL");

/// Revision
pub const REVISION: &str = "SDL3-release-3.2.0";
pub const REVISION: &str = "SDL3-release-3.2.2";

/// Version part of the revision
pub const VERSION: &str = "3.2.0";
pub const VERSION: &str = "3.2.2";

/// Tag part of the revision
pub const REVISION_TAG: &str = "release-3.2.0";
pub const REVISION_TAG: &str = "release-3.2.2";

/// Tag part of the revision without version
pub const REVISION_TAG_BASE: &str = "release";
Expand All @@ -23,4 +23,4 @@ pub const REVISION_TAG_BASE: &str = "release";
pub const REVISION_OFFSET: &str = "0";

/// Hash part of the revision
pub const REVISION_HASH: &str = "g535d80bad";
pub const REVISION_HASH: &str = "g2fa1e7258";
4 changes: 2 additions & 2 deletions sdl3-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sdl3-sys"
version = "0.4.2+SDL3-3.2.0"
version = "0.4.3+SDL3-3.2.2"
edition = "2021"
authors = ["Maia S. R."]
license = "Zlib"
Expand Down Expand Up @@ -109,7 +109,7 @@ version = "0.1.2"
optional = true

[build-dependencies.sdl3-src]
version = "3.2.0"
version = "3.2.2"
path = "../sdl3-src"
optional = true

Expand Down
2 changes: 1 addition & 1 deletion sdl3-sys/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# sdl3-sys: Low level Rust bindings for SDL 3

These are low level Rust bindings for SDL, the [Simple DirectMedia Layer](https://libsdl.org).
This version of `sdl3-sys` has bindings for SDL version `3.2.0` and earlier.
This version of `sdl3-sys` has bindings for SDL version `3.2.2` and earlier.

Many types can be initialized to all zero with the `Default` trait for convenience.
However, many of these aren't valid when passed to SDL without further modification.
Expand Down
2 changes: 1 addition & 1 deletion sdl3-sys/src/generated/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ pub unsafe fn SDL_AtomicIncRef(a: *mut SDL_AtomicInt) -> ::core::ffi::c_int {
/// ***Note: If you don't know what this macro is for, you shouldn't use it!***
///
/// ### Parameters
/// - `a`: a pointer to an [`SDL_AtomicInt`] to increment.
/// - `a`: a pointer to an [`SDL_AtomicInt`] to decrement.
///
/// ### Return value
/// Returns true if the variable reached zero after decrementing, false
Expand Down
15 changes: 9 additions & 6 deletions sdl3-sys/src/generated/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ extern "C" {
/// created through [`SDL_OpenAudioDevice()`] can be.
///
/// ### Parameters
/// - `dev`: a device opened by [`SDL_OpenAudioDevice()`].
/// - `devid`: a device opened by [`SDL_OpenAudioDevice()`].
///
/// ### Return value
/// Returns true on success or false on failure; call [`SDL_GetError()`] for more
Expand All @@ -973,7 +973,7 @@ extern "C" {
/// ### See also
/// - [`SDL_ResumeAudioDevice`]
/// - [`SDL_AudioDevicePaused`]
pub fn SDL_PauseAudioDevice(dev: SDL_AudioDeviceID) -> ::core::primitive::bool;
pub fn SDL_PauseAudioDevice(devid: SDL_AudioDeviceID) -> ::core::primitive::bool;
}

extern "C" {
Expand All @@ -992,7 +992,7 @@ extern "C" {
/// created through [`SDL_OpenAudioDevice()`] can be.
///
/// ### Parameters
/// - `dev`: a device opened by [`SDL_OpenAudioDevice()`].
/// - `devid`: a device opened by [`SDL_OpenAudioDevice()`].
///
/// ### Return value
/// Returns true on success or false on failure; call [`SDL_GetError()`] for more
Expand All @@ -1007,7 +1007,7 @@ extern "C" {
/// ### See also
/// - [`SDL_AudioDevicePaused`]
/// - [`SDL_PauseAudioDevice`]
pub fn SDL_ResumeAudioDevice(dev: SDL_AudioDeviceID) -> ::core::primitive::bool;
pub fn SDL_ResumeAudioDevice(devid: SDL_AudioDeviceID) -> ::core::primitive::bool;
}

extern "C" {
Expand All @@ -1021,7 +1021,7 @@ extern "C" {
/// IDs will report themselves as unpaused here.
///
/// ### Parameters
/// - `dev`: a device opened by [`SDL_OpenAudioDevice()`].
/// - `devid`: a device opened by [`SDL_OpenAudioDevice()`].
///
/// ### Return value
/// Returns true if device is valid and paused, false otherwise.
Expand All @@ -1035,7 +1035,7 @@ extern "C" {
/// ### See also
/// - [`SDL_PauseAudioDevice`]
/// - [`SDL_ResumeAudioDevice`]
pub fn SDL_AudioDevicePaused(dev: SDL_AudioDeviceID) -> ::core::primitive::bool;
pub fn SDL_AudioDevicePaused(devid: SDL_AudioDeviceID) -> ::core::primitive::bool;
}

extern "C" {
Expand Down Expand Up @@ -1982,6 +1982,9 @@ extern "C" {
/// previously been paused. Once unpaused, any bound audio streams will begin
/// to progress again, and audio can be generated.
///
/// Remember, [`SDL_OpenAudioDeviceStream`] opens device in a paused state, so this
/// function call is required for audio playback to begin on such device.
///
/// ### Parameters
/// - `stream`: the audio stream associated with the audio device to resume.
///
Expand Down
4 changes: 2 additions & 2 deletions sdl3-sys/src/generated/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ extern "C" {
/// through a scary warning popup.
///
/// ### Parameters
/// - `devid`: the camera device instance ID to query.
/// - `instance_id`: the camera device instance ID.
/// - `count`: a pointer filled in with the number of elements in the list,
/// may be NULL.
///
Expand All @@ -285,7 +285,7 @@ extern "C" {
/// - [`SDL_GetCameras`]
/// - [`SDL_OpenCamera`]
pub fn SDL_GetCameraSupportedFormats(
devid: SDL_CameraID,
instance_id: SDL_CameraID,
count: *mut ::core::ffi::c_int,
) -> *mut *mut SDL_CameraSpec;
}
Expand Down
2 changes: 1 addition & 1 deletion sdl3-sys/src/generated/gamepad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! "joysticks" now are actually console-style gamepads. So SDL provides the
//! gamepad API on top of the lower-level joystick functionality.
//!
//! The difference betweena joystick and a gamepad is that a gamepad tells you
//! The difference between a joystick and a gamepad is that a gamepad tells you
//! _where_ a button or axis is on the device. You don't speak to gamepads in
//! terms of arbitrary numbers like "button 3" or "axis 2" but in standard
//! locations: the d-pad, the shoulder buttons, triggers, A/B/X/Y (or
Expand Down
Loading

0 comments on commit cb5d7de

Please sign in to comment.