MCPcopy Create free account
hub / github.com/PerroEngine/Perro / set_position

Method set_position

perro_source/api_modules/perro_input_api/src/state.rs:223–226  ·  view source on GitHub ↗
(&mut self, x: f32, y: f32)

Source from the content-addressed store, hash-verified

221 /// Set absolute mouse position in window pixels.
222 #[inline]
223 pub fn set_position(&mut self, x: f32, y: f32) {
224 self.position_x = x;
225 self.position_y = y;
226 }
227
228 /// Set viewport size used for normalized mouse position.
229 #[inline]

Callers 7

set_mouse_positionMethod · 0.80
commit_moved_body_2dMethod · 0.80
commit_moved_body_3dMethod · 0.80
body_teleport_2dFunction · 0.80
body_teleport_3dFunction · 0.80
sync_world_2dMethod · 0.80
sync_world_3dMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected