LavaUI docs GitHub

enum KeyAction

Swift

enum KeyAction

Key action (GLFW). Packaged as Float in InputEvent.x for Key events.

Sources/LavaUI/Input.swift:203

Properties

static let press: Float

The key was pressed.

Sources/LavaUI/Input.swift:207

static let release: Float

The key was released.

Sources/LavaUI/Input.swift:205

static let `repeat`: Float

The key is held and auto-repeating.

Sources/LavaUI/Input.swift:209

Methods

static func isDown(_ action: Float) -> Bool

Whether the action is a press or a repeat, that is, the key is down.

Sources/LavaUI/Input.swift:212