mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
updated OS X port to support sf::Event::KeyEvent::System.
This commit is contained in:
parent
ede01df778
commit
becf51572f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user