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

Method set_button_state

perro_source/api_modules/perro_input_api/src/joycon.rs:179–194  ·  view source on GitHub ↗
(&mut self, button: JoyConButton, is_down: bool)

Source from the content-addressed store, hash-verified

177 #[inline(always)]
178 pub fn set_calibration_requested(&mut self, requested: bool) {
179 self.calibration_requested = requested;
180 }
181
182 #[inline(always)]
183 pub fn set_calibration_bias(&mut self, x: f32, y: f32, z: f32) {
184 self.calibration_bias = perro_structs::Vector3::new(x, y, z);
185 }
186
187 #[inline(always)]
188 pub fn set_mouse_sensor(&mut self, x: f32, y: f32, extra: f32, distance: f32) {
189 self.mouse_sensor = JoyConMouseSensor {
190 x,
191 y,
192 extra,
193 distance,
194 };
195 }
196
197 #[inline(always)]

Callers

nothing calls this directly

Calls 1

as_indexMethod · 0.45

Tested by

no test coverage detected