mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 23:36:55 +00:00
Don't allow release of a running gamepad
This commit is contained in:
1 parent
261887e3c9
commit
d46a9b4dc0
1 file changed
+4
@@ -71,6 +71,10 @@ public class NativeGamepad {
|
||||
}
|
||||
|
||||
public static void release() {
|
||||
if (running) {
|
||||
throw new IllegalStateException("Cannot release running NativeGamepad");
|
||||
}
|
||||
|
||||
NativeGamepad.shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user