Function ggez::input::mouse::handle_move

source ·
pub fn handle_move(ctx: &mut Context, new_x: f32, new_y: f32)
👎Deprecated since 0.8.0: Use ctx.mouse.handle_move instead
Expand description

Updates delta and position values. The inputs are interpreted as pixel coordinates inside the window.

This function is called internally whenever the mouse moves to a new location. It can also be used to simulate mouse input. (It gets called inside the default implementation of the touch_event, for example.) Calling this function alone won’t trigger a mouse_motion_event though. (Note that the default implementation of touch_event DOES trigger one, but it does so by invoking it on the EventHandler manually.)