Bugzilla – Attachment 153 Details for
Bug 413
mouseWheelMoved event is never generated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Source code to demonstrate the bug
TestNewt.java (text/x-java), 1.49 KB, created by
Kraft
on 2010-09-11 16:02:28 CEST
(
hide
)
Description:
Source code to demonstrate the bug
Filename:
MIME Type:
Creator:
Kraft
Created:
2010-09-11 16:02:28 CEST
Size:
1.49 KB
patch
obsolete
> > >import javax.media.opengl.GLCapabilities; >import javax.media.opengl.GLProfile; > >import com.jogamp.newt.event.MouseAdapter; >import com.jogamp.newt.event.MouseEvent; >import com.jogamp.newt.event.WindowAdapter; >import com.jogamp.newt.event.WindowEvent; >import com.jogamp.newt.opengl.GLWindow; > >/** > * This sample demonstrates that when the user rolls the mouse wheel, > * instead of calling mouseWheelMoved(), the methods mousePressed() and > * mouseReleased() are called. > */ > >public class TestNewt { > > public static void main(String[] args) { > new TestNewt(); > } > > public TestNewt() { > > GLProfile.initSingleton(); > GLProfile glp = GLProfile.getDefault(); > GLCapabilities caps = new GLCapabilities(glp); > > GLWindow window = GLWindow.create(caps); > window.setSize(600, 300); > window.setVisible(true); > window.setTitle("TestNewt : Roll the wheel of your mouse :)"); > > window.addWindowListener(new WindowAdapter() { > public void windowDestroyNotify(WindowEvent arg0) { > System.exit(0); > }; > }); > > window.addMouseListener(new MouseAdapter() { > > public void mousePressed(MouseEvent arg0) { > System.out.println("mousePressed"); > } > > public void mouseReleased(MouseEvent arg0) { > System.out.println("mouseReleased"); > } > > public void mouseWheelMoved(MouseEvent arg0) { > System.out.println("mouseWheelMoved"); > } > } > ); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 413
: 153