Table of Contents

Enum KeyModifiers

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

Modifier keys that must be held with a key for a KeyboardKeyBinding to match.

[Flags]
public enum KeyModifiers

Fields

Alt = 4

The Alt key.

Command = 8

Command on macOS, the Windows key elsewhere. SDL calls it the GUI modifier.

Here because without it a shortcut cannot be expressed at all on a Mac, where the clipboard lives on Cmd rather than Ctrl: an action bound to Ctrl+V never fires there. A game wanting one shortcut under both conventions binds the key twice, once with each modifier, rather than making a binding mean different things per platform.

Ctrl = 1

The Control key.

None = 0

No modifier key.

Shift = 2

The Shift key.