(&mut self, index: usize)
| 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. |
no test coverage detected