|
From: Brad L. <bra...@gm...> - 2018-06-28 03:53:53
|
On Wed, Jun 27, 2018 at 3:08 PM, Brian Griffin <bri...@ea...> wrote: > That's using the same wheel for both dimensions. What I should have said > is that for mouse devices have a separate X-axis mechanism (tilt wheel or > roller ball for example) there is no Windows mechanism to get these events > in Tk currently that I am aware of. For Linux, button-6 and button-7 > handle these events. > Well, just for fun, testing on Linux: Logitech G500: Button 1 : left mouse Button 2 : center button (pushing the mouse wheel down) Button 3 : right mouse Button 4 : mouse wheel up (rotation) Button 5 : mouse wheel down (rotation) Button 6 : mouse wheel left (this is a click, not a rotation). This button repeats when held left. Button 7 : mouse wheel right (again, a click, not a rotation) This button repeats when held right. Button 8 : lower button on left side Button 9 : upper button on left side Button 10 : center button on left side So using button 6/7 for horizontal scrolling would be quite usable. Like 4/5, the 6/7 repeat generates press/release pairs. None of the other buttons repeat. On Mac OS X: Logitech G500: Button 1 : left mouse Button 2 : right mouse Button 3 : center mouse (note reversal from Linux/Windows) Button 4 : left side lower button Button 5 : left side upper button, The left mouse wheel, right mouse wheel and left side center button do not register. I forgot to actually test a bind to <MouseWheel>, but we can assume it works. Windows: Logitech G500: Button 1 : left mouse Button 2 : center mouse Button 3 : right mouse Mouse Wheel up and down Left mouse wheel, right mouse wheel and the three left side buttons do not register. In this case, I am just using whatever defaults are in the logitech software. The upper and lower left side buttons are assigned to "forward" and "back" and windows is probably intercepting these assignments. The left and right mouse wheel are assigned to "scroll left" and "scroll right". Maybe windows is also intercepting these assignments? They work in FireFox, so Windows must be seeing them, but Tk does not. |