[Openmcl-devel] opengl rubix example

Lawrence E. Bakst ml at iridescent.org
Mon May 2 18:33:25 PDT 2005


First, at one point I believe option-click and command-click where built into the old MacOS as proxies for center and right click respectively. That is also the standard for Apple's X11 for MacOS X. XTerm may vary. Don't get me going about X-11.

Why are people talking about control-click?

While I concur with most of your comments and rants please consider this. I use a 17" AlPB laptop. I specifically don't carry around a multi button mouse because there are many places it's either inconvenient or impractical to use a mouse.

No matter whether you like it or not, the Apple standard is currently a one button mouse. Assuming anything else seems dubious. For the record I think a one button mouse is the right choice for the vast majority if lusers.

*flame on. feel free to ignore this rant*
The fact that Cocoa can't do some of the standard multi-button emulation, is just another reason I hate frameworks. BTW, in the new Hemlock stuff, every time I do a paste, Cocoa likes to add a space after it. Something Gary mentioned a long time ago in an unrelated email. Thank you Cocoa for assuming that I would want a space after a paste, and thanks again for probably not giving me an API way to change it, and thanks again for not making it open source so I can fix it myself, and thanks again for using obj-c, because if it was CLOS I could use method combination to fix it even if it was close source.

How soon until someone adds the delete the space after paste hack to Hemlock and how soon before Apple changes the behavior of Cocoa and we need to take the fix out?

I vote we switch to Carbon so we can prevent my suicide over framework junk like this. Perhaps I could deal with it if it was open source.

I am better now.
*flame off*

Best,

leb


At 4:35 PM -0600 5/2/05, Hamilton Link wrote:
>I'm not using GLUT to handle keyboard or mouse events, I'm using NSOpenGLView for display, which inherits NSView's handling of events.
>
>If I'm understanding your problem correctly, your single-button mouse won't work. #$NSRightMouseDragged and kin, as far as I can tell, require right-clicking... in other words, use a multi-button mouse's right button.
>
>Ranting aside (I *hate* apple's policy of shipping landfill-caliber one-button mice with their systems and giving me only one laptop mouse button), er, d'oh...
>
>Ranting aside, the OS doesn't give NSRightMouse-anything to an app when ctrl-clicking with a single button, it still gives left mouse events with modifiers. I haven't actually written the little bits of code into the rubix example to check for modifiers on the left-mouse button (the "only" mouse button), and probably won't, because I assume that a large fraction of Apple's consumer population buys real mice.
>
>As a side note: Yes, this does mean that every apple program that handles ctrl-click as right-click has to be specifically coded to do so.
>
>h
>
>On May 2, 2005, at 3:47 PM, Lawrence E. Bakst wrote:
>
>>What set of modifiers do you think right-click requires? I assume command-click? I tried all the possible combinations and nothing seems to work. FWIW I found a post that seems to imply that GLUT may have it's own idea of these mappings.
>>
>>http://lists.apple.com/archives/unix-porting/2002/Sep/msg00105.html
>>
>>I have no idea why my system would be different that yours.
>>
>>Best,
>>
>>leb
>>
>>
>>At 1:36 PM -0600 5/2/05, Hamilton Link wrote:
>>>Have you tried to right-click/drag on the faces? The initial solved cube will look like it has solid faces, yeah. But the six faces will rotate independently. Possibly a screen shot is in order...
>>>
>>>
>>>Attachment converted: std:openmcl-opengl-rubix.tiff (TIFF/GKON) (00241126)
>>>
>>>I've thought about making it more perfectly rubix-cubelike but it wasn't worth the effort, getting quaternions and picking & selection etc in an NSOpenGLView were the objectives.
>>>
>>>And yes, there was only one tiny little change, in blocks.lisp
>>>
>>>h
>>>
>>>On May 2, 2005, at 1:11 PM, Lawrence E. Bakst wrote:
>>>
>>>>Hi Hamilton,
>>>>
>>>>I'm not sure it's still working right on my laptop. I assume I am supposed to see an array of 3x3 squares on each face of the cube? I don't see that I see 6 solid color faces.
>>>>
>>>>Also, you only changed the file "blocks.lisp", correct? CVS showed the other files all 9 months old.
>>>>
>>>>Best,
>>>>
>>>>leb
>>>>
>>>>At 11:24 AM -0600 5/2/05, Hamilton Link wrote:
>>>>>In the process of toying with the idea of making stand-alone-app versions of the two opengl examples, I discovered that the rubix cube example had a picking and selection bug. It now works properly. Left-mouse/drag will rotate the cube, and right-mouse/drag on a face will turn a face clockwise or ccw.
>>>>>
>>>>>The bug made right-mousing do picking and selection in the viewable buffer for some reason (and never switch the camera back), so if you tried it before and wondered if it was working properly, no it wasn't.
>>>>>
>>>>>h
>>>>
>>>>
>>>>
>>>>--
>>>>Lawrence E. Bakst
>>>>leb at iridescent.org
>>
>>
>>--
>>Lawrence E. Bakst
>>leb at iridescent.org





More information about the Openmcl-devel mailing list