Skip to content

Commit

Permalink
Merge pull request #1076 from jamierobertson1/master
Browse files Browse the repository at this point in the history
Fix keyboard modifier typos in Update Win32_Window.h
  • Loading branch information
robertosfield authored Jan 20, 2024
2 parents f1f61d2 + ab425ce commit 081c88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vsg/platform/win32/Win32_Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ namespace vsgWin32
// Check if the modifier keys are down (these are non-toggle keys, so the high-order bit is relevant!)
// again, vsg only has a side-independent modifier
if (keyState[VK_LSHIFT] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Shift;
if (keyState[VK_LSHIFT] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Shift;
if (keyState[VK_RSHIFT] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Shift;
if (keyState[VK_LCONTROL] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Control;
if (keyState[VK_RCONTROL] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Control;
if (keyState[VK_LMENU] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Alt;
if (keyState[VK_LMENU] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Alt;
if (keyState[VK_RMENU] & 0x80) modifierMask |= vsg::KeyModifier::MODKEY_Alt;

// This is the final keyModifier
keyModifier = static_cast<vsg::KeyModifier>(modifierMask);
Expand Down

0 comments on commit 081c88a

Please sign in to comment.