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 {