Skip to content

Commit

Permalink
[Rust - libgui] libgui_derive includes left-click-up passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Apr 5, 2024
1 parent 24be2ea commit 1f70aea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust_programs/libgui_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ fn impl_ui_element_derive(ast: &syn::DeriveInput) -> TokenStream {
self.view.handle_left_click(mouse_point)
}

fn handle_left_click_up(&self, mouse_point: Point) {
self.view.handle_left_click_up(mouse_point)
}

fn handle_key_pressed(&self, key: KeyCode) {
self.view.handle_key_pressed(key)
}
Expand Down

0 comments on commit 1f70aea

Please sign in to comment.