Table of Contents

Enum Keymod

Namespace
Sdl3Sharp.Input
Assembly
Sdl3Sharp.dll

Represents keyboard modifier keys

[Flags]
public enum Keymod : ushort

Fields

Alt = LeftAlt | RightAlt

Both ALT (alt) keys combined

This is effectively LeftAlt | RightAlt.

CapsLock = 8192

The (caps lock) key is down

Control = LeftControl | RightControl

Both CTRL (control) keys combined

This is effectively LeftControl | RightControl.

Gui = LeftGui | RightGui

Both (Windows) key on PCs, (command) keys on Macs, or sometimes called meta keys, combined

This is effectively LeftGui | RightGui.

LeftAlt = 256

The left ALT (left alt) key is down

LeftControl = 64

The left CTRL (left control) key is down

LeftGui = 1024

The left (left Windows) key on PCs, left (left command) key on Macs, or sometimes called left meta key, is down

LeftShift = 1

The left (shift) key is down

Level5Shift = 4

The "Level 5 Shift" key is down

Mode = 16384
None = 0

No modifier key is down

NumLock = 4096

The NUM (num lock), may be located on an extended keypad, is down

RightAlt = 512

The right ALT (right alt) key, or sometimes called ALT GR (alt gr.) key, is down

RightControl = 128

The right CTRL (right control) key is down

RightGui = 2048

The right (right Windows) key on PCs, right (right command) key on Macs, or sometimes called right meta key, is down

RightShift = 2

The right (shift) key is down

ScrollLock = 32768

The SCROLL (scroll lock) key is down

Shift = LeftShift | RightShift

Both (shift) keys combined

This is effectively LeftShift | RightShift.