MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / set_up

Method set_up

src/input.rs:211–217  ·  view source on GitHub ↗
(&mut self, button: T)

Source from the content-addressed store, hash-verified

209 }
210
211 fn set_up(&mut self, button: T) {
212 let was_down = self.down.remove(&button);
213
214 if was_down {
215 self.released.insert(button);
216 }
217 }
218
219 fn is_down(&self, button: T) -> bool {
220 self.down.contains(&button)

Callers 1

eventMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected