aboutsummaryrefslogtreecommitdiff
path: root/src/compat/yacl/java/KeybindingBuilder.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-13 19:53:10 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-13 19:53:10 +0200
commit87b851373071490bb371ba1160f85f0341579cb2 (patch)
tree45d267d83baad2e3cb6caad6127f6a4d40e7fcbf /src/compat/yacl/java/KeybindingBuilder.kt
parente6142bb93619dee768fc18b87ffdd28558d4bcab (diff)
downloadfirmament-87b851373071490bb371ba1160f85f0341579cb2.tar.gz
firmament-87b851373071490bb371ba1160f85f0341579cb2.tar.bz2
firmament-87b851373071490bb371ba1160f85f0341579cb2.zip
Add YACL config menu
Diffstat (limited to 'src/compat/yacl/java/KeybindingBuilder.kt')
-rw-r--r--src/compat/yacl/java/KeybindingBuilder.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compat/yacl/java/KeybindingBuilder.kt b/src/compat/yacl/java/KeybindingBuilder.kt
new file mode 100644
index 0000000..322ddff
--- /dev/null
+++ b/src/compat/yacl/java/KeybindingBuilder.kt
@@ -0,0 +1,16 @@
+package moe.nea.firmament.compat.yacl
+
+import dev.isxander.yacl3.api.Controller
+import dev.isxander.yacl3.api.Option
+import dev.isxander.yacl3.api.controller.ControllerBuilder
+import moe.nea.firmament.gui.config.ManagedOption
+import moe.nea.firmament.keybindings.SavedKeyBinding
+
+class KeybindingBuilder(
+ val option: Option<SavedKeyBinding>,
+ val managedOption: ManagedOption<SavedKeyBinding>
+) : ControllerBuilder<SavedKeyBinding> {
+ override fun build(): Controller<SavedKeyBinding> {
+ return KeybindingController(option, managedOption)
+ }
+}