src/camera.c
// 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
void camera_processMouseScroll(camera *camera, float y_offset) {
    camera->Zoom -= (float) y_offset;
    if (camera->Zoom < 1.0f)
        camera->Zoom = 1.0f;
    if (camera->Zoom > 45.0f)
        camera->Zoom = 45.0f;
    updateCameraVectors(camera);
}
void camera_processMouseScroll ( camera * camera , float y_offset ) { camera -> Zoom -= ( float ) y_offset ; if ( camera -> Zoom < 1.0f ) camera -> Zoom = 1.0f ; if ( camera -> Zoom > 45.0f ) camera -> Zoom = 45.0f ; updateCameraVectors ( camera ) ; }
processes input received from a mouse scroll-wheel event.
processes input received from a mouse scroll - wheel event .