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

Method location

src/mouse.rs:135–137  ·  view source on GitHub ↗

Final location of the mouse this frame. If you want to process _all_ the locations the mouse was at during this frame, see [`Engine::mouse_location_events`](crate::prelude::Engine::mouse_location_events) instead.

(&self)

Source from the content-addressed store, hash-verified

133 /// was at during this frame, see
134 /// [`Engine::mouse_location_events`](crate::prelude::Engine::mouse_location_events) instead.
135 pub fn location(&self) -> Option<Vec2> {
136 self.location
137 }
138 /// The cumulative relative motion of the mouse this frame. If you want to process _all_ the
139 /// individual relative motions, see
140 /// [`Engine::mouse_motion_events](crate::prelude::Engine::mouse_motion_events) instead.

Callers 4

logicFunction · 0.80
game_logicFunction · 0.80
logicFunction · 0.80
game_logicFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected