diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-11-15 23:42:26 +0100 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-11-15 23:42:26 +0100 |
| commit | 5632c1d50bb0319886fb6acd54df92bf01491532 (patch) | |
| tree | 6f9adb070df25a4406cfa7713714f9e348f7445e /src/main | |
| parent | 4d8399ff4d769def62e6a8241327c4f2dac47e71 (diff) | |
| download | Firmament-5632c1d50bb0319886fb6acd54df92bf01491532.tar.gz Firmament-5632c1d50bb0319886fb6acd54df92bf01491532.tar.bz2 Firmament-5632c1d50bb0319886fb6acd54df92bf01491532.zip | |
snapshot: full 1.21.10 build (- REI; fuck private discord builds)
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/kotlin/keybindings/GenericInputButton.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/keybindings/GenericInputButton.kt b/src/main/kotlin/keybindings/GenericInputButton.kt index 39bb4dd..7a3d8d5 100644 --- a/src/main/kotlin/keybindings/GenericInputButton.kt +++ b/src/main/kotlin/keybindings/GenericInputButton.kt @@ -62,6 +62,7 @@ sealed interface GenericInputButton { companion object { + fun of(event: KeyInput) = ofKeyAndScan(event.keycode, event.scancode) fun escape() = ofKeyCode(GLFW.GLFW_KEY_ESCAPE) fun ofKeyCode(keyCode: Int): GenericInputButton = KeyCodeButton(keyCode) fun ofScanCode(scanCode: Int): GenericInputButton = ScanCodeButton(scanCode) |
