From becf51572f2f52e301aace8f9b6b287468daf120 Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Wed, 27 Apr 2011 13:53:59 +0200 Subject: [PATCH] updated OS X port to support sf::Event::KeyEvent::System. --- src/SFML/Window/OSX/SFOpenGLView.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index 9b6292c6..bd9c8477 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -603,6 +603,7 @@ sf::Key::Code NonLocalizedKeys(unsigned short keycode); key.Alt = modifiers & NSAlternateKeyMask; key.Control = modifiers & NSControlKeyMask; key.Shift = modifiers & NSShiftKeyMask; + key.System = modifiers & NSCommandKeyMask; // State BOOL rightShiftIsDown = NO; @@ -1018,6 +1019,7 @@ sf::Key::Code NonLocalizedKeys(unsigned short keycode); key.Alt = modifierFlags & NSAlternateKeyMask; key.Control = modifierFlags & NSControlKeyMask; key.Shift = modifierFlags & NSShiftKeyMask; + key.System = modifierFlags & NSCommandKeyMask; // Key code. key.Code = sf::Key::Count;