JDK-6315717 : Support For Mouse With Multiple Scroll Wheels and 4 or More Buttons
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0,6,7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_xp,windows_vista
  • CPU: x86
  • Submitted: 2005-08-25
  • Updated: 2017-05-16
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b48Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
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
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/
16-09-2008

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.
19-04-2006