summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Trembovetski <[email protected]>2009-05-26 22:59:32 +0000
committerDmitri Trembovetski <[email protected]>2009-05-26 22:59:32 +0000
commit92bf955f17d1c070322ccf94d2de76d74f3eaa40 (patch)
tree881ef04067e128fefa271134ddb096ccc5922a16
parenta2891274a4160062cea7a649a321f798216a1587 (diff)
Newt: updated newt demos to implement new methods in Mouse and WindowListeners
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@335 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
-rwxr-xr-xsrc/demos/es1/RedSquare.java4
-rwxr-xr-xsrc/demos/es1/angeles/Main.java4
-rwxr-xr-xsrc/demos/es1/cubefbo/Main.java4
-rwxr-xr-xsrc/demos/es2/RedSquare.java2
-rwxr-xr-xsrc/demos/es2/openmax/MovieCube.java2
-rwxr-xr-xsrc/demos/es2/openmax/MovieSimple.java2
-rwxr-xr-xsrc/demos/es2/perftst/Perftst.java2
-rw-r--r--src/demos/newt/NEWTTest1.java9
-rw-r--r--src/demos/newt/TaskManagerTest1.java9
-rw-r--r--src/demos/newt/TaskManagerTest2.java9
10 files changed, 47 insertions, 0 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index db3d1a5..fc134db 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -25,6 +25,8 @@ public class RedSquare implements WindowListener, KeyListener, MouseListener, GL
public void windowDestroyNotify(WindowEvent e) {
quit=true;
}
+ public void windowGainedFocus(WindowEvent e) { }
+ public void windowLostFocus(WindowEvent e) { }
public void keyPressed(KeyEvent e) {
System.out.println(e);
@@ -59,6 +61,8 @@ public class RedSquare implements WindowListener, KeyListener, MouseListener, GL
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
private void run(int type) {
int width = 800;
diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java
index 30aed45..226f595 100755
--- a/src/demos/es1/angeles/Main.java
+++ b/src/demos/es1/angeles/Main.java
@@ -12,6 +12,8 @@ public class Main implements WindowListener, MouseListener {
public void windowResized(WindowEvent e) { }
public void windowMoved(WindowEvent e) { }
+ public void windowGainedFocus(WindowEvent e) { }
+ public void windowLostFocus(WindowEvent e) { }
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
@@ -33,6 +35,8 @@ public class Main implements WindowListener, MouseListener {
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
private void run(int type) {
int width = 800;
diff --git a/src/demos/es1/cubefbo/Main.java b/src/demos/es1/cubefbo/Main.java
index b299ca4..b80e1af 100755
--- a/src/demos/es1/cubefbo/Main.java
+++ b/src/demos/es1/cubefbo/Main.java
@@ -12,6 +12,8 @@ public class Main implements WindowListener, MouseListener {
public void windowResized(WindowEvent e) { }
public void windowMoved(WindowEvent e) { }
+ public void windowGainedFocus(WindowEvent e) { }
+ public void windowLostFocus(WindowEvent e) { }
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
@@ -41,6 +43,8 @@ public class Main implements WindowListener, MouseListener {
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
private void run(int type) {
int width = 800;
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 569b4f4..ba4c307 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -41,6 +41,8 @@ public class RedSquare implements MouseListener, GLEventListener {
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
private void run(int type) {
int width = 800;
diff --git a/src/demos/es2/openmax/MovieCube.java b/src/demos/es2/openmax/MovieCube.java
index 5d8c763..270cf2a 100755
--- a/src/demos/es2/openmax/MovieCube.java
+++ b/src/demos/es2/openmax/MovieCube.java
@@ -76,6 +76,8 @@ public class MovieCube implements MouseListener, GLEventListener, OMXEventListen
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
public MovieCube (String stream) {
cube = new Cube(true, false);
diff --git a/src/demos/es2/openmax/MovieSimple.java b/src/demos/es2/openmax/MovieSimple.java
index da256ad..ecbb0b2 100755
--- a/src/demos/es2/openmax/MovieSimple.java
+++ b/src/demos/es2/openmax/MovieSimple.java
@@ -84,6 +84,8 @@ public class MovieSimple implements MouseListener, GLEventListener, OMXEventList
rotate = true;
zoom = -5;
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
public MovieSimple(String stream) {
this.stream = stream ;
diff --git a/src/demos/es2/perftst/Perftst.java b/src/demos/es2/perftst/Perftst.java
index 90b236c..ba47029 100755
--- a/src/demos/es2/perftst/Perftst.java
+++ b/src/demos/es2/perftst/Perftst.java
@@ -34,6 +34,8 @@ public class Perftst implements MouseListener, GLEventListener {
}
public void mouseDragged(MouseEvent e) {
}
+ public void mouseWheelMoved(MouseEvent e) {
+ }
private void run(int type, PerfModule pm) {
int width = 800;
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index 15e2ff8..51a31c7 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -21,6 +21,12 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
// stop running ..
@@ -58,6 +64,9 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
void render(long context)
{
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index f704a86..d2b7e98 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -33,6 +33,12 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
System.err.println("Window Event Listener DestroyNotify send stop request - START");
@@ -70,6 +76,9 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
void render(long context)
{
diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java
index 2332451..ab6fd47 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -17,6 +17,12 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
// stop running ..
@@ -59,6 +65,9 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
private class RenderThread implements Runnable {
Window window;