Skip to content

Commit

Permalink
Fix documentation and helpers visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlabat committed Feb 19, 2024
1 parent e1038c9 commit 8e67413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ fn egui_to_winit_cursor_icon(cursor_icon: egui::CursorIcon) -> Option<bevy::wind
}
}

/// Matches the implementation of https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1005.
/// Matches the implementation of <https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1005>.
pub fn bevy_to_egui_key(key: &Key) -> Option<egui::Key> {
let key = match key {
Key::Character(str) => return egui::Key::from_name(str.as_str()),
Expand Down Expand Up @@ -617,8 +617,8 @@ pub fn bevy_to_egui_key(key: &Key) -> Option<egui::Key> {
Some(key)
}

/// Matches the implementation of https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1080.
fn bevy_to_egui_physical_key(key: &KeyCode) -> Option<egui::Key> {
/// Matches the implementation of <https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1080>.
pub fn bevy_to_egui_physical_key(key: &KeyCode) -> Option<egui::Key> {
let key = match key {
KeyCode::ArrowDown => egui::Key::ArrowDown,
KeyCode::ArrowLeft => egui::Key::ArrowLeft,
Expand Down

0 comments on commit 8e67413

Please sign in to comment.