MCPcopy Create free account
hub / github.com/CleanCut/rusty_engine / motion

Method motion

src/mouse.rs:141–143  ·  view source on GitHub ↗

The cumulative relative motion of the mouse this frame. If you want to process _all_ the individual relative motions, see [`Engine::mouse_motion_events](crate::prelude::Engine::mouse_motion_events) instead.

(&self)

Source from the content-addressed store, hash-verified

139 /// individual relative motions, see
140 /// [`Engine::mouse_motion_events](crate::prelude::Engine::mouse_motion_events) instead.
141 pub fn motion(&self) -> Vec2 {
142 self.motion
143 }
144 /// Returns a [`MouseWheelState], which is a simplified version of cumulative mouse wheel
145 /// events. When dealing with mouse wheel movement, you _usually_ don't want this...you want
146 /// [`Engine::mouse_wheel_events`](crate::prelude::Engine::mouse_wheel_events) instead.

Callers 1

logicFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected