Skip to content

Commit

Permalink
Update KeyBinding.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
EngineMachiner committed May 23, 2024
1 parent b5341b2 commit 4b6edbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/com/enginemachiner/harmony/KeyBinding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package com.enginemachiner.harmony
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper
import net.minecraft.client.option.KeyBinding
import net.minecraft.client.util.InputUtil
import org.lwjgl.glfw.GLFW

object KeyBinding {

private val CATEGORY = "category.$MOD_NAME"

private fun register( key: String, type: InputUtil.Type, glfwCode: Int ): KeyBinding {
private fun register( key: String, type: InputUtil.Type = InputUtil.Type.KEYSYM, glfwCode: Int = GLFW.GLFW_KEY_UNKNOWN ): KeyBinding {

val preKey = "key.$MOD_NAME."

Expand Down

0 comments on commit 4b6edbd

Please sign in to comment.