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

Method get_value

src/input.rs:253–255  ·  view source on GitHub ↗
(&self, player: usize, axis: GamepadAxis)

Source from the content-addressed store, hash-verified

251 }
252
253 fn get_value(&self, player: usize, axis: GamepadAxis) -> f32 {
254 *self.curr.get(&(player, axis)).unwrap_or(&0.0)
255 }
256
257 fn set_value(&mut self, player: usize, axis: GamepadAxis, value: f32) {
258 self.curr.insert((player, axis), value);

Callers 2

gamepad_axisMethod · 0.80
gamepad_stickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected