Hi, * Jean-Sébastien Guay -- Thursday 31 July 2008: > Hi Melchior (I get confused as to whether Franz or Melchior is your > first name... sorry :-) ),
Yes, Melchior is my first name. (Both are normally first names, Franz still common and widely used, while Melchior was more popular centuries ago. It's understandable that people are confused. Some even try to correct me, which is why I always write Melchior FRANZ, which is also the right form in administrative context, military, etc.) > I don't want to assume there will *never* *ever* be key constants > over 256... What do you think? In X11 I'm pretty safe. It's a very stable protocol. The function that I'm using for the key query is defined as int XQueryKeymap(Display *display, char keys_return[32]); They *can't* just extend that, as apps are only making char[32] available. If they'd extend it, then by defining a new function and keeping the old one functional. There aren't even symbols for the boundaries 8 and 255. Given that people will still only have 10 fingers even in a few hundred years, this inflexibility doesn't make me very nervous. :-) [...] > That way we can iterate through the actual key values we know exist, and > it's still opaque since we can only get a const_iterator. I know which (potentially) exist: keys 8 to 255. And I'm checking for those. And I have to consider all of them, anyway. (Though, I could save some cycles by not testing every single bit, but whole bytes first.) I don't really have an opinion on MS Windows. I try to stay away from it as far as I can. :-) m. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
