mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-15 21:31:12 +00:00
Don't allow release of a running gamepad
This commit is contained in:
@@ -71,6 +71,10 @@ public class NativeGamepad {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void release() {
|
public static void release() {
|
||||||
|
if (running) {
|
||||||
|
throw new IllegalStateException("Cannot release running NativeGamepad");
|
||||||
|
}
|
||||||
|
|
||||||
NativeGamepad.shutdown();
|
NativeGamepad.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user