// Processes input received from a mouse scroll-wheel event. Only requires input on the vertical wheel-axis
Processes input received from a mouse scroll-wheel event. Only requires input on the vertical wheel-axis
Processes input received from a mouse scroll - wheel event . Only requires input on the vertical wheel - axis
pub fn process_mouse_scroll(&mut self, yoffset: f32) {
        if self.zoom >= 1.0 && self.zoom <= 45.0 {
            self.zoom -= yoffset;
        }
        if self.zoom <= 1.0 {
            self.zoom = 1.0;
        }
        if self.zoom >= 45.0 {
            self.zoom = 45.0;
        }
    }
pub fn process_mouse_scroll ( & mut self , yoffset : f32 ) { if self . zoom >= 1.0 && self . zoom <= 45.0 { self . zoom -= yoffset ; } if self . zoom <= 1.0 { self . zoom = 1.0 ; } if self . zoom >= 45.0 { self . zoom = 45.0 ; } }
Processes input received from a mouse scroll-wheel event.
Processes input received from a mouse scroll - wheel event .
&mut self
yoffset
f32