mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
check that controller is actually created!
This commit is contained in:
parent
2c5cab2fa1
commit
fa9cd75463
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ public class ControllerCreationTest {
|
|||
setDisplayMode();
|
||||
Display.setFullscreen(fullscreen);
|
||||
Display.create();
|
||||
|
||||
|
||||
if(!Controller.isCreated()) {
|
||||
throw new Exception("Controller could not be created");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.exit(-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue