- Event::JoyDeviceAdded { which, .. } => { self.add_device(*which) }
- Event::JoyDeviceRemoved { which, .. } => { self.remove_device(*which) }
- // Event::JoyButtonDown { which, button_idx, .. } => { println!("device {} button {} down!", which, button_idx) }
- // Event::JoyButtonUp { which, button_idx, .. } => { println!("device {} button {} up!", which, button_idx) }
- // Event::JoyAxisMotion { which, axis_idx, .. } => { println!("device {} axis motion {}!", which, axis_idx) }
+ Event::ControllerDeviceAdded { which, .. } => { self.add_device(*which) }
+ Event::ControllerDeviceRemoved { which, .. } => { self.remove_device(*which) }
+ // Event::ControllerButtonDown { which, button_idx, .. } => { println!("device {} button {} down!", which, button_idx) }
+ // Event::ControllerButtonUp { which, button_idx, .. } => { println!("device {} button {} up!", which, button_idx) }
+ // Event::ControllerAxisMotion { which, axis_idx, .. } => { println!("device {} axis motion {}!", which, axis_idx) }