Custom Controls
Adding a Behavior
val helloClick = object : ClickBehaviour {
val output = "Hello World"
override fun click(x: Int, y: Int) {
logger.info(output + "at $x and $y")
}
}inputHandler?.addBehaviour("hello_click", helloClick)Assigning Keys to Behaviors
inputHandler?.addKeyBinding("hello_click", "button1")Last updated
Was this helpful?