aboutsummaryrefslogtreecommitdiff
path: root/src/compat/yacl/java/KeybindingBuilder.kt
blob: 322ddffd5b62ac8f1655fcc7b14634a6ce007e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
	}
}