From 0140f1047c529b00530b9470929ec7ee70f43037 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 24 Oct 2026 23:56:44 +0000 Subject: [PATCH] Integration: the page input guard also catches egui's per-button pointer reads (#2685) --- crates/ui-egui/src/page_pointer.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/page_pointer.rs b/crates/ui-egui/src/page_pointer.rs index baf0e29613..2fa5871164 100644 --- a/crates/ui-egui/src/page_pointer.rs +++ b/crates/ui-egui/src/page_pointer.rs @@ -275,7 +275,7 @@ mod tests { ]; /// egui's raw pointer state: where the pointer is, and which buttons are down or went down. - const RAW_READS: [&str; 15] = [ + const RAW_READS: [&str; 21] = [ "hover_pos()", "interact_pos()", "latest_pos()", @@ -291,6 +291,13 @@ mod tests { "any_pressed()", "any_released()", "any_click()", + // These take the button, so they match up to the parenthesis. + "button_down(", + "button_pressed(", + "button_released(", + "button_clicked(", + "button_double_clicked(", + "button_triple_clicked(", ]; /// Functions in the page modules that are not page input and read egui's pointer state