Don't allow release of a running gamepad

This commit is contained in:
Cameron Gutman
2013-12-30 23:28:45 -06:00
parent 261887e3c9
commit d46a9b4dc0

View File

@@ -71,6 +71,10 @@ public class NativeGamepad {
}
public static void release() {
if (running) {
throw new IllegalStateException("Cannot release running NativeGamepad");
}
NativeGamepad.shutdown();
}