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

Method gamepad_mut

perro_source/api_modules/perro_input_api/src/snapshot.rs:229–234  ·  view source on GitHub ↗
(&mut self, index: usize)

Source from the content-addressed store, hash-verified

227 pub fn joycon_side(&self, side: JoyConSide) -> Option<&JoyConState> {
228 self.joycons.iter().find(|jc| jc.side() == side)
229 }
230
231 /// Find the first mutable Joy-Con with a matching side.
232 #[inline]
233 pub fn joycon_side_mut(&mut self, side: JoyConSide) -> Option<&mut JoyConState> {
234 self.joycons.iter_mut().find(|jc| jc.side() == side)
235 }
236
237 /// Return a mutable gamepad slot, creating empty slots as needed.

Callers 4

set_gamepad_axisMethod · 0.80
set_gamepad_gyroMethod · 0.80
set_gamepad_accelMethod · 0.80

Calls 2

resize_withMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected