From 5632c1d50bb0319886fb6acd54df92bf01491532 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 15 Nov 2025 23:42:26 +0100 Subject: snapshot: full 1.21.10 build (- REI; fuck private discord builds) --- src/main/kotlin/keybindings/GenericInputButton.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/keybindings/GenericInputButton.kt') 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) -- cgit