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

Method set_value

src/input.rs:257–259  ·  view source on GitHub ↗
(&mut self, player: usize, axis: GamepadAxis, value: f32)

Source from the content-addressed store, hash-verified

255 }
256
257 fn set_value(&mut self, player: usize, axis: GamepadAxis, value: f32) {
258 self.curr.insert((player, axis), value);
259 }
260
261 fn has_moved(&self, player: usize, axis: GamepadAxis) -> bool {
262 self.curr.get(&(player, axis)) != self.prev.get(&(player, axis))

Callers 1

eventMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected