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

Method set_down

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

Source from the content-addressed store, hash-verified

201 }
202
203 fn set_down(&mut self, button: T) {
204 let was_up = self.down.insert(button);
205
206 if was_up {
207 self.pressed.insert(button);
208 }
209 }
210
211 fn set_up(&mut self, button: T) {
212 let was_down = self.down.remove(&button);

Callers 1

eventMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected