LavaUI docs GitHub

enum KeyMods

Swift

enum KeyMods

Modifier bitfield (GLFW mods).

Sources/LavaUI/Input.swift:181

Properties

static let alt: Int32

Alt is held.

Sources/LavaUI/Input.swift:187

static let control: Int32

Control is held.

Sources/LavaUI/Input.swift:185

static let shift: Int32

Shift is held.

Sources/LavaUI/Input.swift:183

static let superKey: Int32

Super (the Windows key) is held.

Sources/LavaUI/Input.swift:189

Methods

static func contains(_ mods: Int32, _ flag: Int32) -> Bool

Whether mods has flag set.

Sources/LavaUI/Input.swift:192

static func controlShift(_ mods: Int32) -> Bool

Whether both Control and Shift are held.

Sources/LavaUI/Input.swift:197