Skip to content

Commit 6112fd0

Browse files
feat(sys): update bindings for MaaFramework v5.11.2 (#52)
Co-authored-by: Lemon-miaow <admin@lemonmiaow.xyz>
1 parent 2fd2766 commit 6112fd0

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
cargo test --verbose --features dynamic -- --test-threads=1
235235
236236
macos:
237-
runs-on: macos-latest
237+
runs-on: macos-15
238238
strategy:
239239
matrix:
240240
arch: [aarch64]

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ homepage = "https://github.com/MaaXYZ/MaaFramework"
1111
repository = "https://github.com/MaaXYZ/MaaFramework"
1212

1313
[workspace.dependencies]
14-
maa-framework-sys = { path = "maa-framework-sys", version = "5.11.1" }
14+
maa-framework-sys = { path = "maa-framework-sys", version = "5.11.2" }

maa-framework-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "maa-framework-sys"
3-
version = "5.11.1"
3+
version = "5.11.2"
44
authors.workspace = true
55
edition.workspace = true
66
description = "Low-level Rust bindings for MaaFramework"

maa-framework-sys/src/bindings/dynamic_bindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ impl MaaFramework {
31473147
)
31483148
}
31493149
}
3150-
#[doc = " @brief Create a KWin (pure Wayland) controller for Linux.\n\n @param device_node The uinput device node path (e.g., \"/dev/uinput\").\n @param screen_width The screen width in pixels.\n @param screen_height The screen height in pixels.\n @param use_win32_vk_code If true, key codes passed to click_key / key_down / key_up are\n interpreted as Win32 Virtual-Key codes (VK_*) and translated to Linux evdev codes\n internally. If false, key codes are passed through as raw evdev codes.\n @return The controller handle, or nullptr on failure.\n\n @note This controller is designed for KWin (pure Wayland) on Linux.\n @note Input is simulated via /dev/uinput (kernel-level virtual touchscreen).\n @note Screencap is implemented via PipeWire / xdg-desktop-portal (KDE/KWin).\n Captures the foreground monitor in fullscreen mode.\n @note Requires user authorization via the screen sharing dialog (xdg-desktop-portal).\n @note Requires write permission to /dev/uinput (typically via the \"input\" group).\n @note Only single touch is supported (contact must be 0)."]
3150+
#[doc = " @brief Create a KWin / Linux Wayland controller via PipeWire and /dev/uinput.\n\n Despite the name \"KWin\", this controller works with any Wayland compositor that\n implements the XDG Screencast Portal and kernel has uinput support (e.g., GNOME).\n\n @param device_node The uinput device node path (e.g., \"/dev/uinput\").\n @param screen_width The screen width in pixels.\n @param screen_height The screen height in pixels.\n @param use_win32_vk_code If true, key codes passed to click_key / key_down / key_up are\n interpreted as Win32 Virtual-Key codes (VK_*) and translated to Linux evdev codes\n internally. If false, key codes are passed through as raw evdev codes.\n @return The controller handle, or nullptr on failure.\n\n @note Dependencies: pipewire (1.0+), xdg-desktop-portal.\n @note Screencap is implemented via PipeWire / xdg-desktop-portal.\n @note Input is simulated via /dev/uinput (kernel-level virtual input devices).\n @note Requires user authorization via the screen sharing dialog (xdg-desktop-portal).\n @note Requires write permission to /dev/uinput (typically via the \"input\" group).\n It is recommended to configure a udev rule:\n KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"input\"."]
31513151
pub unsafe fn MaaKWinControllerCreate(
31523152
&self,
31533153
device_node: *const ::std::os::raw::c_char,

maa-framework-sys/src/bindings/static_bindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ unsafe extern "C" {
699699
) -> *mut MaaController;
700700
}
701701
unsafe extern "C" {
702-
#[doc = " @brief Create a KWin (pure Wayland) controller for Linux.\n\n @param device_node The uinput device node path (e.g., \"/dev/uinput\").\n @param screen_width The screen width in pixels.\n @param screen_height The screen height in pixels.\n @param use_win32_vk_code If true, key codes passed to click_key / key_down / key_up are\n interpreted as Win32 Virtual-Key codes (VK_*) and translated to Linux evdev codes\n internally. If false, key codes are passed through as raw evdev codes.\n @return The controller handle, or nullptr on failure.\n\n @note This controller is designed for KWin (pure Wayland) on Linux.\n @note Input is simulated via /dev/uinput (kernel-level virtual touchscreen).\n @note Screencap is implemented via PipeWire / xdg-desktop-portal (KDE/KWin).\n Captures the foreground monitor in fullscreen mode.\n @note Requires user authorization via the screen sharing dialog (xdg-desktop-portal).\n @note Requires write permission to /dev/uinput (typically via the \"input\" group).\n @note Only single touch is supported (contact must be 0)."]
702+
#[doc = " @brief Create a KWin / Linux Wayland controller via PipeWire and /dev/uinput.\n\n Despite the name \"KWin\", this controller works with any Wayland compositor that\n implements the XDG Screencast Portal and kernel has uinput support (e.g., GNOME).\n\n @param device_node The uinput device node path (e.g., \"/dev/uinput\").\n @param screen_width The screen width in pixels.\n @param screen_height The screen height in pixels.\n @param use_win32_vk_code If true, key codes passed to click_key / key_down / key_up are\n interpreted as Win32 Virtual-Key codes (VK_*) and translated to Linux evdev codes\n internally. If false, key codes are passed through as raw evdev codes.\n @return The controller handle, or nullptr on failure.\n\n @note Dependencies: pipewire (1.0+), xdg-desktop-portal.\n @note Screencap is implemented via PipeWire / xdg-desktop-portal.\n @note Input is simulated via /dev/uinput (kernel-level virtual input devices).\n @note Requires user authorization via the screen sharing dialog (xdg-desktop-portal).\n @note Requires write permission to /dev/uinput (typically via the \"input\" group).\n It is recommended to configure a udev rule:\n KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"input\"."]
703703
pub fn MaaKWinControllerCreate(
704704
device_node: *const ::std::os::raw::c_char,
705705
screen_width: ::std::os::raw::c_int,

0 commit comments

Comments
 (0)