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:
Elias Naur 2006-10-26 20:19:40 +00:00
parent 0a17002082
commit 3674d843c2
24 changed files with 1344 additions and 153 deletions

View file

@ -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();
}
}