Give added device to any disconnected controller
[kaka/rust-sdl-test.git] / src / core / app.rs
index b495edb..8c07417 100644 (file)
@@ -182,7 +182,7 @@ impl App {
             match event {
                Event::ControllerButtonDown { .. } => {
                    let c = self.ctrl_man.controllers[0].clone();
-                   c.rumble(0.75, 100);
+                   c.borrow().rumble(1.0, 300);
                }
                 Event::Quit { .. }
                 | Event::KeyDown {