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

Method new

src/input.rs:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28impl Input {
29 pub fn new() -> Input {
30 Input {
31 keys: ButtonState::new(),
32 mouse_buttons: ButtonState::new(),
33 gamepad_buttons: ButtonState::new(),
34
35 axes: AxisState::new(),
36 mouse_position: Vec2::ZERO,
37
38 gamepads: Vec::new(),
39 joystick_ids: HashMap::new(),
40 }
41 }
42
43 pub fn event(&mut self, event: &Event) {
44 match event {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected