Various fixes
- GLFW display mode array, fix 0x0 resolution bug
- OSMesa library (copied back 64f4042)
- Hacks for getting Spiral Knights to launch
- Error is now logged properly
This commit is contained in:
1 parent
1d2d7edaec
commit
ae1c86b113
15 files changed
+104
-236
No files matched your search
@@ -19,8 +19,8 @@ public static int getControllerCount() {
|
||||
ctrlr.poll();
|
||||
}
|
||||
public static boolean next() {
|
||||
ctrlr.poll();
|
||||
return true;
|
||||
//ctrlr.poll();
|
||||
return false;//true;
|
||||
}
|
||||
public static boolean isCreated() {
|
||||
return true;
|
||||
@@ -76,4 +76,4 @@ public static int getControllerCount() {
|
||||
public static float getEventYAxisValue() {
|
||||
return ctrlr.getYAxisValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ public class GLFWController implements Controller{
|
||||
|
||||
@Override
|
||||
public boolean isButtonPressed(int index) {
|
||||
return (buttonData.get(index) == 1);
|
||||
return (buttonData.remaining() > index) && (buttonData.get(index) == 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user