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

Class Input

src/input.rs:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14pub use self::mouse::*;
15
16pub struct Input {
17 keys: ButtonState<Key>,
18 mouse_buttons: ButtonState<MouseButton>,
19 gamepad_buttons: ButtonState<(usize, GamepadButton)>,
20
21 axes: AxisState,
22 mouse_position: Vec2,
23
24 gamepads: Vec<Option<Gamepad>>,
25 joystick_ids: HashMap<JoystickID, usize>,
26}
27
28impl Input {
29 pub fn new() -> Input {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected