| 14 | pub use self::mouse::*; |
| 15 | |
| 16 | pub 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 | |
| 28 | impl Input { |
| 29 | pub fn new() -> Input { |
nothing calls this directly
no outgoing calls
no test coverage detected