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

Method gamepad_axis

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

Source from the content-addressed store, hash-verified

157 }
158
159 pub fn gamepad_axis(&self, player: usize, axis: GamepadAxis) -> f32 {
160 self.axes.get_value(player, axis)
161 }
162
163 pub fn has_gamepad_axis_moved(&self, player: usize, axis: GamepadAxis) -> bool {
164 self.axes.has_moved(player, axis)

Callers

nothing calls this directly

Calls 1

get_valueMethod · 0.80

Tested by

no test coverage detected