updated OS X port to support sf::Event::KeyEvent::System.

This commit is contained in:
Marco Antognini 2011-04-27 13:53:59 +02:00
parent ede01df778
commit becf51572f

View File

@ -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;