()
| 27 | |
| 28 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected