Skip to content

Commit

Permalink
Fix build with debug feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and Drakulix committed Dec 12, 2023
1 parent f70d33d commit 53de98a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,13 +985,19 @@ impl State {
if self.common.egui.state.wants_pointer() {
self.common.egui.state.handle_pointer_axis(
event
.amount_discrete(Axis::Horizontal)
.or_else(|| event.amount(Axis::Horizontal).map(|x| x * 3.0))
.unwrap_or(0.0),
.amount_v120(Axis::Horizontal)
.or_else(|| {
event.amount(Axis::Horizontal).map(|x| x * 3.0 * 120.0)
})
.unwrap_or(0.0)
/ 120.0,
event
.amount_discrete(Axis::Vertical)
.or_else(|| event.amount(Axis::Vertical).map(|x| x * 3.0))
.unwrap_or(0.0),
.amount_v120(Axis::Vertical)
.or_else(|| {
event.amount(Axis::Vertical).map(|x| x * 3.0 * 120.0)
})
.unwrap_or(0.0)
/ 120.0,
);
return;
}
Expand Down

0 comments on commit 53de98a

Please sign in to comment.