summaryrefslogtreecommitdiff
path: root/indra/llwindow/llkeyboardwin32.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-03-08 00:25:12 +0000
committerJosh Bell <josh@lindenlab.com>2007-03-08 00:25:12 +0000
commit6fa974fc64b172a7324b28d40f08f2a861d87f8d (patch)
tree3ef9df7d3b66bfbdd6163bf3b88d3d2163a186bc /indra/llwindow/llkeyboardwin32.cpp
parenta00d02efef4de36138194f468465235c01b11d01 (diff)
svn merge -r 58859:58902 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
Diffstat (limited to 'indra/llwindow/llkeyboardwin32.cpp')
-rw-r--r--indra/llwindow/llkeyboardwin32.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/llwindow/llkeyboardwin32.cpp b/indra/llwindow/llkeyboardwin32.cpp
index 448345eeeb..6c7662f5a9 100644
--- a/indra/llwindow/llkeyboardwin32.cpp
+++ b/indra/llwindow/llkeyboardwin32.cpp
@@ -168,10 +168,7 @@ MASK LLKeyboardWin32::updateModifiers()
// Scan the modifier keys as of the last Windows key message
// (keydown encoded in high order bit of short)
- //setModifierKeyLevel( KEY_SHIFT, GetKeyState(VK_SHIFT) & 0x8000 );
- //setModifierKeyLevel( KEY_CONTROL, GetKeyState(VK_CONTROL) & 0x8000 );
- //setModifierKeyLevel( KEY_ALT, GetKeyState(VK_MENU) & 0x8000 );
- //setModifierKeyLevel( KEY_CAPSLOCK, GetKeyState(VK_CAPITAL) & 0x0001); // Low order bit carries the toggle state.
+ mKeyLevel[KEY_CAPSLOCK] = (GetKeyState(VK_CAPITAL) & 0x0001) != 0; // Low order bit carries the toggle state.
// Get mask for keyboard events
MASK mask = currentMask(FALSE);
return mask;