forked from PleahMaCaka/forge-kotlin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeyBinds.kt
29 lines (23 loc) · 741 Bytes
/
KeyBinds.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.pleahmacaka.examplemod.keybind
import com.mojang.blaze3d.platform.InputConstants
import net.minecraft.client.KeyMapping
import net.minecraftforge.client.settings.KeyConflictContext
import org.lwjgl.glfw.GLFW
object KeyBinds {
private const val CATEGORY = "Example Keybind"
val KB_EXAMPLE_KEYBIND_ONE = KeyMapping(
"ONE",
KeyConflictContext.IN_GAME,
InputConstants.Type.KEYSYM,
GLFW.GLFW_KEY_INSERT,
CATEGORY
)
val KB_EXAMPLE_KEYBIND_TWO = KeyMapping(
"TWO",
KeyConflictContext.IN_GAME,
InputConstants.Type.KEYSYM,
GLFW.GLFW_KEY_C,
CATEGORY
)
val KEYBINDINGS = hashSetOf(KB_EXAMPLE_KEYBIND_ONE, KB_EXAMPLE_KEYBIND_TWO)
}