aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/keybindings/FirmamentKeyboardState.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/keybindings/FirmamentKeyboardState.kt')
-rw-r--r--src/main/kotlin/keybindings/FirmamentKeyboardState.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/keybindings/FirmamentKeyboardState.kt b/src/main/kotlin/keybindings/FirmamentKeyboardState.kt
index dc20630..da94a44 100644
--- a/src/main/kotlin/keybindings/FirmamentKeyboardState.kt
+++ b/src/main/kotlin/keybindings/FirmamentKeyboardState.kt
@@ -2,7 +2,7 @@ package moe.nea.firmament.keybindings
import java.util.BitSet
import org.lwjgl.glfw.GLFW
-import net.minecraft.client.input.KeyInput
+import net.minecraft.client.input.KeyEvent
object FirmamentKeyboardState {
@@ -15,7 +15,7 @@ object FirmamentKeyboardState {
}
@Synchronized
- fun maintainState(keyInput: KeyInput, action: Int) {
+ fun maintainState(keyInput: KeyEvent, action: Int) {
when (action) {
GLFW.GLFW_PRESS -> pressedScancodes.set(keyInput.scancode)
GLFW.GLFW_RELEASE -> pressedScancodes.clear(keyInput.scancode)