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

Method player_mut

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

Source from the content-addressed store, hash-verified

251 if index.is_multiple_of(2) {
252 JoyConState::new(JoyConSide::LJoyCon)
253 } else {
254 JoyConState::new(JoyConSide::RJoyCon)
255 }
256 });
257 }
258 &mut self.joycons[index]
259 }
260
261 /// Return a mutable player slot, creating empty slots as needed.

Callers 1

bind_playerMethod · 0.80

Calls 2

resize_withMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected