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

Method bind_player

perro_source/api_modules/perro_input_api/src/window.rs:75–81  ·  view source on GitHub ↗
(&self, index: usize, binding: PlayerBinding)

Source from the content-addressed store, hash-verified

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 }

Callers 1

apply_eventFunction · 0.45

Calls 2

command_bufferMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected