

At least I can say 25 is not a right click that’s values 3 (down) and 4 (up). But you should be able to see if it returns a 25 for a middle mouse click. The name promises much more than it holds it’s just a very basic local NSEvent monitor printing out the event types in Xojo’s debugger (Messages) area. If they use another command such as a key+mouse click, then all you have to do is use the same. If they use wheel press, then it is possible and just necessary to find out how. You may want to ask people who do CAD on the Mac how they manage PAN. But we are venturing much far away from a simple declare.
Magicprefs autocad Pc#
Since a PC mouse with a wheel can be attached to a Mac, even without an event in Cocoa, it should be possible to tap into the low level USB management to catch the specific signal the mouse generates when mouse press occur. You know, pressing down in the center of the magic mouse which would be the closest equivalent of wheel press is just left and right buttons pressed together. I just wanted to know if OS X had this possibility, because I’m totally ignorant about it, but according to your comments it seems I’d better forget about it. Of course I can simulate pressing mouse wheel with other (presently I combine Shift and left button), and I don’t try to ask Xojo to do something special for me. I like to observe which laptops students use and still this type of mouse is the most popular. You are right in all you say.īut CAD sector (I’m an architect) works with mice with a “pressable” wheel. Xojo cannot detect both buttons pressed, as isContextualClick is true when the right button is the only one down. Maybe you could do that ? At the page I linked to, pressedMouseButtons can detect that event. In older PC mice, the third button was obtained by holding both left and right button down. And the corded mouse does have a very small trackball that acts pretty much like a wheel, but the press down is used by the mouse hardware to simulate holding the left button down (I use it on a PC). The most common mouse today, the Magic Mouse, simply does not have a wheel but uses swipe gestures instead. Unless I am mistaken, there seems to be no way to get that event. There are quantities of things, but none about pressing the wheel. I looked at the NSEvent page for handling mouse events.
Magicprefs autocad how to#
As Xojo doesn’t provide any event for mouse-wheel pressing I’ve used declares to recreate such behaviour.īut I am a Windows user and I know how to do it in Windows, but I have no idea how to do it in OS X.
