Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Drabble committed May 12, 2022
1 parent 23863b2 commit 9db4a8e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions maplibre-winit/src/input/tilt_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ impl TiltHandler {
} else {
Deg::zero()
};
// FIXME: If the goal is to maintain the key pressed to tilt, then process_key shouldn't
// increase the delta_pitch but set it to true/false. Increasing the delta will cause
// multiple clicks to cause a bigger tilt if more than one event can occur during a
// frame.
match key {
winit::event::VirtualKeyCode::R => {
self.delta_pitch -= amount;
Expand Down

0 comments on commit 9db4a8e

Please sign in to comment.