Added the sf::Event::KeyEvent::System member (implements feature #8)
This commit is contained in:
parent
eac841ec71
commit
ede01df778
13 changed files with 17 additions and 1 deletions
|
@ -203,6 +203,7 @@ struct sfKeyEvent
|
|||
sfBool Alt;
|
||||
sfBool Control;
|
||||
sfBool Shift;
|
||||
sfBool System;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -58,6 +58,7 @@ inline void ConvertEvent(const sf::Event& SFMLEvent, sfEvent* event)
|
|||
event->Key.Alt = SFMLEvent.Key.Alt ? sfTrue : sfFalse;
|
||||
event->Key.Control = SFMLEvent.Key.Control ? sfTrue : sfFalse;
|
||||
event->Key.Shift = SFMLEvent.Key.Shift ? sfTrue : sfFalse;
|
||||
event->Key.System = SFMLEvent.Key.System ? sfTrue : sfFalse;
|
||||
break;
|
||||
|
||||
case sfEvtMouseWheelMoved :
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -242,6 +242,9 @@ namespace SFML
|
|||
|
||||
/// <summary>Is the Shift modifier pressed?</summary>
|
||||
public int Shift;
|
||||
|
||||
/// <summary>Is the System modifier pressed?</summary>
|
||||
public int System;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -23,6 +23,7 @@ namespace SFML
|
|||
Alt = e.Alt != 0;
|
||||
Control = e.Control != 0;
|
||||
Shift = e.Shift != 0;
|
||||
System = e.System != 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -37,7 +38,8 @@ namespace SFML
|
|||
" Code(" + Code + ")" +
|
||||
" Alt(" + Alt + ")" +
|
||||
" Control(" + Control + ")" +
|
||||
" Shift(" + Shift + ")";
|
||||
" Shift(" + Shift + ")" +
|
||||
" System(" + System + ")";
|
||||
}
|
||||
|
||||
/// <summary>Code of the key (see KeyCode enum)</summary>
|
||||
|
@ -51,6 +53,9 @@ namespace SFML
|
|||
|
||||
/// <summary>Is the Shift modifier pressed?</summary>
|
||||
public bool Shift;
|
||||
|
||||
/// <summary>Is the System modifier pressed?</summary>
|
||||
public bool System;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue