Posts

Post not yet marked as solved
1 Replies
363 Views
I have a Java application that needs to distinguish between a horizontal scroll wheel event with the Shift key held down and one without. Unfortunately, the macOS port of the OpenJDK delivers horizontal scroll wheel events the same as vertical scroll wheel events, but with the SHIFT_DOWN modifier already applied.Ideally, I'd like to be pleasently surprised and find out that there's a SystemProperty or ClientProperty that I could set that changed this behavior in the JRE so that either (a) a different modifier key was used or (b) that I could subclass an existing class and override the behavior. However, even after cloning the macosx-port Mercurial repo from the OpenJDK and searching through the source code, I don't see where OS-generated events are converted into AWTEvents.Any help or pointers as to where to look in the source code -- or to any alternative solutions -- would be greatly appreciated. Thanks!
Posted
by Azhrei.
Last updated
.