mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
stop native gamepad when closing limelight
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user