mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
requesting xinput will always fail on non-windows
This commit is contained in:
@@ -335,7 +335,12 @@ public class AppLoader implements ApplicationListener {
|
||||
}
|
||||
|
||||
// nullify if not actually connected
|
||||
if (!((XinputControllerAdapter) gamepad).getC().isConnected()) {
|
||||
try {
|
||||
if (!((XinputControllerAdapter) gamepad).getC().isConnected()) {
|
||||
gamepad = null;
|
||||
}
|
||||
}
|
||||
catch (NullPointerException notQuiteWindows) {
|
||||
gamepad = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user