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

Method stick

perro_source/api_modules/perro_input_api/src/joycon.rs:232–234  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

230 #[inline(always)]
231 pub fn set_accel(&mut self, x: f32, y: f32, z: f32) {
232 self.accel = perro_structs::Vector3::new(x, y, z);
233 }
234
235 #[inline(always)]
236 pub fn stick_x(&self) -> f32 {
237 self.stick.x.to_f32()

Callers 2

ui_any_nav_stick_heldMethod · 0.80

Calls 1

as_vector2Method · 0.45

Tested by

no test coverage detected