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:
@@ -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);
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user