Skip to content

Conversation

Yarwin
Copy link
Contributor

@Yarwin Yarwin commented Oct 8, 2025

[Edit bromeon]:
Closes godot-rust/gdext#1359

It should be:

let simple_dispatch: i32 = match_class! { event,
    button @ InputEventMouseButton => 1,
    motion @ InputEventMouseMotion => 2,
    action @ InputEventAction => 3,
    _ => 0,  // Fallback.
};

Instead of

let simple_dispatch: i32 = match_class!(event, {
    button @ InputEventMouseButton => 1,
    motion @ InputEventMouseMotion => 2,
    action @ InputEventAction => 3,
    _ => 0,  // Fallback.
});

@Bromeon Bromeon merged commit 8591a03 into godot-rust:master Oct 11, 2025
3 checks passed
@Bromeon
Copy link
Member

Bromeon commented Oct 11, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

devlog mistake

3 participants