Some FlightGear developer reported a problem with NumLock being
detected wrongly at startup. It was always considered off. Pressing
the NumLock key toggled it, but then it wasn't in sync with the
LED. This is pretty much the same problem as we had with CapsLock,
so I added the same fix for it.

Do others have this problem?  If so, does the attached patch fix
it? (I couldn't reproduce, but then again, my keyboard doesn't have
a numpad ... ;-)

What's a bit ugly is that the NumLock mask isn't standardized, so
I need this code:

  #if defined(_AIX)
  #   define NumLockMask Mod5Mask
  #else   // Linux
  #   define NumLockMask Mod2Mask
  #endif

... and I have no idea about other Unices. What about BSD, Irix,
HPUX, Solaris, etc.? (Mrs. Google told me about AIX.)

m.

Attachment: x11numlock.diff.bz2
Description: BZip2 compressed data

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to