1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Make begin_frame methods on input non-pub

This commit is contained in:
Emil Ernerfeldt
2021-11-03 22:22:42 +01:00
parent d775eb3733
commit d8519b3281
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ impl Default for InputState {
impl InputState { impl InputState {
#[must_use] #[must_use]
pub fn begin_frame(mut self, new: RawInput) -> InputState { pub(crate) fn begin_frame(mut self, new: RawInput) -> InputState {
let time = new let time = new
.time .time
.unwrap_or_else(|| self.time + new.predicted_dt as f64); .unwrap_or_else(|| self.time + new.predicted_dt as f64);

View File

@@ -122,7 +122,7 @@ impl TouchState {
} }
} }
pub fn begin_frame(&mut self, time: f64, new: &RawInput, pointer_pos: Option<Pos2>) { pub(crate) fn begin_frame(&mut self, time: f64, new: &RawInput, pointer_pos: Option<Pos2>) {
let mut added_or_removed_touches = false; let mut added_or_removed_touches = false;
for event in &new.events { for event in &new.events {
match *event { match *event {