aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/Window.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/GLWindow.java8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java
index e807ad6af..869ca2cf3 100755
--- a/src/newt/classes/com/jogamp/newt/Window.java
+++ b/src/newt/classes/com/jogamp/newt/Window.java
@@ -588,7 +588,7 @@ public abstract class Window implements NativeWindow
// Generic Event Support
//
- protected void sendEvent(NEWTEvent e) {
+ public void sendEvent(NEWTEvent e) {
if(e instanceof WindowEvent) {
sendWindowEvent((WindowEvent)e);
} else if(e instanceof KeyEvent) {
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
index 0bbd38a4e..b47b580ed 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
@@ -281,6 +281,10 @@ public class GLWindow extends Window implements GLAutoDrawable {
return window.isUndecorated();
}
+ public void requestFocus() {
+ window.requestFocus();
+ }
+
public void setSize(int width, int height) {
window.setSize(width, height);
}
@@ -337,6 +341,10 @@ public class GLWindow extends Window implements GLAutoDrawable {
window.surfaceUpdated(updater, window, when);
}
+ public void sendEvent(NEWTEvent e) {
+ window.sendEvent(e);
+ }
+
public void addMouseListener(MouseListener l) {
window.addMouseListener(l);
}