|
From: Harald O. <har...@el...> - 2018-06-28 06:31:47
|
Brad, Am 28.06.2018 um 05:53 schrieb Brad Lanam: > On Wed, Jun 27, 2018 at 3:08 PM, Brian Griffin <bri...@ea... > <mailto: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. Thank you for the fun test. For Windows, I would ask you to: - start notepad - start spy++ from Microsoft (delivered in many older VisualC etc.) (if you don't find it, drop me an E-Mail) - Spy the windows events of the notepad toplevel (Find Window, get target on window, chosse "Messages") - give notepad input focus - press all buttons and record what is shown in Spy++ Unfortunately, Spy++ does not work for Windows 10, but there might be other tools... THank you, Harald |