OpenSceneGraph/include/osgViewer/api
Robert Osfield f5f29a03c1 From Melchoir Franz, "osgViewer toggled the NumLock state correctly when pressing the NumLock
key, but it didn't pick up the initial state. So, if NumLock was on for
the OS at startup (LED on), it was still off for OSG. And the first
keypress turned the LED off, and NumLock on for OSG. The attached fix
picks up the state on every FocusIn, just like it was done in the last
commits for CapsLock. The difference is, that the NumLock mask isn't
standardized (e.g. 0x10 for Linux, and 0x80 for AIX), so we have to do
a reverse lookup (::rescanModifierMapping()).

Note that I could not reproduce the problem on my system, but someone
else confirmed it twice on his, and the patch fixed it for him.

Changed files:
 ./include/osgViewer/api/X11/GraphicsWindowX11
 ./src/osgViewer/GraphicsWindowX11.cpp

"
2008-03-19 21:05:38 +00:00
..
Carbon From Stephan Huber, "I missed a refactoring of the handling of modifier-keys, so they did not 2008-02-25 16:05:53 +00:00
Win32 From Colin McDonald, "Attached is an updated to osgViewer::PixelBufferWin32. 2008-03-04 16:39:44 +00:00
X11 From Melchoir Franz, "osgViewer toggled the NumLock state correctly when pressing the NumLock 2008-03-19 21:05:38 +00:00