mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example. Note: This commit is the linux and generic AWT imlementation and can still change a lot while implementing windows and mac os x.
This commit is contained in:
parent
0a17002082
commit
3674d843c2
24 changed files with 1344 additions and 153 deletions
|
|
@ -589,4 +589,12 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
return new WindowsDirectInput3(getDllInstance());
|
||||
}
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
return Display.getDisplayMode().getWidth();
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
return Display.getDisplayMode().getHeight();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue