United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6315717 Support For Mouse With Multiple Scroll Wheels and 4 or More Buttons
JDK-6315717 : Support For Mouse With Multiple Scroll Wheels and 4 or More Buttons

Details
Type:
Enhancement
Submit Date:
2005-08-25
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
windows_vista,linux,windows_xp
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0,6,7
Fixed Versions:

Related Reports
Duplicate:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
A DESCRIPTION OF THE REQUEST :
Java should be able to distinguish between the different scroll wheels on a mouse with 2 scroll wheels. Also, it should be able to recognice when a fourth or fifth mouse button has been pressed.

JUSTIFICATION :
Many windows applications already support this, users of java applications expect this functionality

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
first wheel: scroll up / down
second wheel: scroll left / right
button 4,5,6,etc: programmable from MouseEvent/MouseEventListener
ACTUAL -
first wheel: scroll up / down
second wheel: copies first wheel (MouseWheelEvent sees it as same wheel)
button 4,5,6,etc: nothing

                                    

Comments
EVALUATION

Believe fourth and fifth buttons are XBUTTON on Win32. This seem only supported by Windows 2000/XP/Vista. According to MSDN WM_XBUTTONDOWN/UP may only reflect the state of two buttons in its high-order part of WPARAM.
Should take a look on how OS handles 6-th (7-th, etc.) mouse button (perhaps it's a driver area that syntesises a sequence of events to get an appropriate result). We have to find how the second wheen is treated by the native system. MSDN doesn't show any other variants of MOUSEWHEEL messages so it's likely that horizontal scroll is just another variant of synthetic events.
                                     
2006-04-19
SUGGESTED FIX

http://hg.openjdk.java.net/jdk7/awt/jdk/rev/3b9a288d7ddb
http://ccc.sfbay/6315717
http://sa.sfbay.sun.com/projects/awt_data/7/6315717/
                                     
2008-09-16



Hardware and Software, Engineered to Work Together