Function tetra::input::get_mouse_wheel_movement[][src]

pub fn get_mouse_wheel_movement(ctx: &Context) -> Vec2<i32>

Get the amount that the mouse wheel moved since the last update.

Most ‘normal’ mice can only scroll vertically, but some devices can also scroll horizontally. Use the Y component of the returned vector if you don’t care about horizontal scroll.

Positive values correspond to scrolling up/right, negative values correspond to scrolling down/left.