stop native gamepad when closing limelight

This commit is contained in:
Diego Waxemberg
2013-12-30 23:26:14 -05:00
parent 913078a5e9
commit 261887e3c9

View File

@@ -28,6 +28,7 @@ import org.xmlpull.v1.XmlPullParserException;
import com.limelight.Limelight;
import com.limelight.binding.PlatformBinding;
import com.limelight.input.gamepad.NativeGamepad;
import com.limelight.nvstream.NvConnection;
import com.limelight.nvstream.http.NvHTTP;
import com.limelight.settings.PreferencesManager;
@@ -62,6 +63,10 @@ public class MainFrame {
@Override
public void windowClosing(WindowEvent e) {
super.windowClosing(e);
if (NativeGamepad.isRunning()) {
NativeGamepad.stop();
}
}
});
Container mainPane = limeFrame.getContentPane();