-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility and warning fixes (#41)
* Add retries with larger atlases to the stitcher code Closes #31 * Add a dummy Controllers class Closes #34 * Fix unsupported NestHost in the shaded jakarta jar.
- Loading branch information
1 parent
47431f0
commit 999b8c1
Showing
5 changed files
with
231 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package org.lwjglx.input; | ||
|
||
public interface Controller { | ||
|
||
public abstract int getAxisCount(); | ||
|
||
public abstract java.lang.String getAxisName(int arg0); | ||
|
||
public abstract float getAxisValue(int arg0); | ||
|
||
public abstract int getButtonCount(); | ||
|
||
public abstract java.lang.String getButtonName(int arg0); | ||
|
||
public abstract float getDeadZone(int arg0); | ||
|
||
public abstract int getIndex(); | ||
|
||
public abstract java.lang.String getName(); | ||
|
||
public abstract float getPovX(); | ||
|
||
public abstract float getPovY(); | ||
|
||
public abstract float getRXAxisDeadZone(); | ||
|
||
public abstract float getRXAxisValue(); | ||
|
||
public abstract float getRYAxisDeadZone(); | ||
|
||
public abstract float getRYAxisValue(); | ||
|
||
public abstract float getRZAxisDeadZone(); | ||
|
||
public abstract float getRZAxisValue(); | ||
|
||
public abstract int getRumblerCount(); | ||
|
||
public abstract java.lang.String getRumblerName(int arg0); | ||
|
||
public abstract float getXAxisDeadZone(); | ||
|
||
public abstract float getXAxisValue(); | ||
|
||
public abstract float getYAxisDeadZone(); | ||
|
||
public abstract float getYAxisValue(); | ||
|
||
public abstract float getZAxisDeadZone(); | ||
|
||
public abstract float getZAxisValue(); | ||
|
||
public abstract boolean isButtonPressed(int arg0); | ||
|
||
public abstract void poll(); | ||
|
||
public abstract void setDeadZone(int arg0, float arg1); | ||
|
||
public abstract void setRXAxisDeadZone(float arg0); | ||
|
||
public abstract void setRYAxisDeadZone(float arg0); | ||
|
||
public abstract void setRZAxisDeadZone(float arg0); | ||
|
||
public abstract void setRumblerStrength(int arg0, float arg1); | ||
|
||
public abstract void setXAxisDeadZone(float arg0); | ||
|
||
public abstract void setYAxisDeadZone(float arg0); | ||
|
||
public abstract void setZAxisDeadZone(float arg0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
package org.lwjglx.input; | ||
|
||
// TODO: This is a dummy implementation | ||
public class Controllers { | ||
|
||
public static void clearEvents() { | ||
// no-op | ||
} | ||
|
||
public static void create() { | ||
// no-op | ||
} | ||
|
||
public static void destroy() { | ||
// no-op | ||
} | ||
|
||
public static org.lwjgl.input.Controller getController(int arg0) { | ||
// no-op | ||
return null; | ||
} | ||
|
||
public static int getControllerCount() { | ||
// no-op | ||
return 0; | ||
} | ||
|
||
public static boolean getEventButtonState() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static int getEventControlIndex() { | ||
// no-op | ||
return 0; | ||
} | ||
|
||
public static long getEventNanoseconds() { | ||
// no-op | ||
return 1; | ||
} | ||
|
||
public static org.lwjgl.input.Controller getEventSource() { | ||
// no-op | ||
return null; | ||
} | ||
|
||
public static float getEventXAxisValue() { | ||
// no-op | ||
return 0.0f; | ||
} | ||
|
||
public static float getEventYAxisValue() { | ||
// no-op | ||
return 0.0f; | ||
} | ||
|
||
public static boolean isCreated() { | ||
// no-op | ||
return true; | ||
} | ||
|
||
public static boolean isEventAxis() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean isEventButton() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean isEventPovX() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean isEventPovY() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean isEventXAxis() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean isEventYAxis() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static boolean next() { | ||
// no-op | ||
return false; | ||
} | ||
|
||
public static void poll() { | ||
// no-op | ||
} | ||
} |