mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Linux: Moved trivial methods from native to java
This commit is contained in:
parent
323a317658
commit
4def20c892
3 changed files with 14 additions and 16 deletions
|
|
@ -55,8 +55,15 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
public native void resetDisplayMode();
|
||||
public native int getGammaRampLength();
|
||||
public native void setGammaRamp(FloatBuffer gammaRamp) throws LWJGLException;
|
||||
public native String getAdapter();
|
||||
public native String getVersion();
|
||||
|
||||
public String getAdapter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public native DisplayMode init();
|
||||
public native void setTitle(String title);
|
||||
public native boolean isCloseRequested();
|
||||
|
|
@ -72,7 +79,10 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
public native void reshape(int x, int y, int width, int height);
|
||||
public native DisplayMode[] getAvailableDisplayModes();
|
||||
/* Mouse */
|
||||
public native boolean hasWheel();
|
||||
public boolean hasWheel() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public native int getButtonCount();
|
||||
public native void createMouse();
|
||||
public native void destroyMouse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue