(&self, index: usize, binding: PlayerBinding)
| 73 | /// Queue a player binding change. |
| 74 | #[inline] |
| 75 | pub fn bind_player(&self, index: usize, binding: PlayerBinding) { |
| 76 | if index >= MAX_INPUT_SLOTS { |
| 77 | return; |
| 78 | } |
| 79 | if let Some(buffer) = self.ipt.command_buffer() { |
| 80 | buffer |
| 81 | .borrow_mut() |
| 82 | .push(InputCommand::BindPlayer { index, binding }); |
| 83 | } |
| 84 | } |
no test coverage detected