mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 15:33:14 -04:00
Make begin_frame methods on input non-pub
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
for event in &new.events {
|
||||
match *event {
|
||||
|
||||
Reference in New Issue
Block a user