[java-gnome-hackers] MouseButton improvements
Brought to you by:
afcowie
From: Vreixo F. <met...@ya...> - 2009-05-17 16:23:39
|
Dear all, I send you this tiny patch that changes MouseButton constant, according to: 1- I have deprecated constants for mouse buttons 4 and 5 (wheel), as they, together with buttons 6 and 7, are not mapped to mouse-clicks events, but to scroll-event, so it makes no sense to treat that as mouse buttons. Or do you know any case where these constants make sense? 2- I have added constants for mouse buttons 8 (BACK) and 9 (FORWARD), as many new mice have such buttons, and not including them causes an exception to be thrown. I have not named it EIGHT or NINE because I really think that using the name the user expects (in the same way we have done with LEFT click, MIDDLE, etc) is a better option. What to you think about these changes? Do you agree? Does any of you have a mouse with more than 9 buttons? If so, can you provide meaningful names for those? Andrew, I'd like to propose this patch for mainline, btw Cheers Vreixo |