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.Alt = modifiers & NSAlternateKeyMask;
key.Control = modifiers & NSControlKeyMask; key.Control = modifiers & NSControlKeyMask;
key.Shift = modifiers & NSShiftKeyMask; key.Shift = modifiers & NSShiftKeyMask;
key.System = modifiers & NSCommandKeyMask;
// State // State
BOOL rightShiftIsDown = NO; BOOL rightShiftIsDown = NO;
@ -1018,6 +1019,7 @@ sf::Key::Code NonLocalizedKeys(unsigned short keycode);
key.Alt = modifierFlags & NSAlternateKeyMask; key.Alt = modifierFlags & NSAlternateKeyMask;
key.Control = modifierFlags & NSControlKeyMask; key.Control = modifierFlags & NSControlKeyMask;
key.Shift = modifierFlags & NSShiftKeyMask; key.Shift = modifierFlags & NSShiftKeyMask;
key.System = modifierFlags & NSCommandKeyMask;
// Key code. // Key code.
key.Code = sf::Key::Count; key.Code = sf::Key::Count;