From d8519b3281c3d585180263968ea01200b0a11deb Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 3 Nov 2021 22:22:42 +0100 Subject: [PATCH] Make begin_frame methods on input non-pub --- egui/src/input_state.rs | 2 +- egui/src/input_state/touch_state.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/egui/src/input_state.rs b/egui/src/input_state.rs index f2cbddf7e..62abcd45d 100644 --- a/egui/src/input_state.rs +++ b/egui/src/input_state.rs @@ -94,7 +94,7 @@ impl Default for InputState { impl InputState { #[must_use] - pub fn begin_frame(mut self, new: RawInput) -> InputState { + pub(crate) fn begin_frame(mut self, new: RawInput) -> InputState { let time = new .time .unwrap_or_else(|| self.time + new.predicted_dt as f64); diff --git a/egui/src/input_state/touch_state.rs b/egui/src/input_state/touch_state.rs index e64370636..7f5c47baf 100644 --- a/egui/src/input_state/touch_state.rs +++ b/egui/src/input_state/touch_state.rs @@ -122,7 +122,7 @@ impl TouchState { } } - pub fn begin_frame(&mut self, time: f64, new: &RawInput, pointer_pos: Option) { + pub(crate) fn begin_frame(&mut self, time: f64, new: &RawInput, pointer_pos: Option) { let mut added_or_removed_touches = false; for event in &new.events { match *event {