From 0f70d1e8f1aa4a547f0993378fa040e4da1f28e5 Mon Sep 17 00:00:00 2001 From: LimePotato Date: Mon, 6 Nov 2023 03:02:33 -0700 Subject: [PATCH] Revert back to WASD --- .../ouroboros/potrogue/entity/systems/InputReceiver.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/group/ouroboros/potrogue/entity/systems/InputReceiver.kt b/src/main/kotlin/group/ouroboros/potrogue/entity/systems/InputReceiver.kt index efa0666..b3d0900 100644 --- a/src/main/kotlin/group/ouroboros/potrogue/entity/systems/InputReceiver.kt +++ b/src/main/kotlin/group/ouroboros/potrogue/entity/systems/InputReceiver.kt @@ -26,10 +26,10 @@ object InputReceiver : BaseBehavior() { // and not a statement, so it returns a value. We can change it into our newPosition variable. val newPosition = when (uiEvent.code) { - KeyCode.UP -> currentPos.withRelativeY(-1) - KeyCode.LEFT -> currentPos.withRelativeX(-1) - KeyCode.DOWN -> currentPos.withRelativeY(1) - KeyCode.RIGHT -> currentPos.withRelativeX(1) + KeyCode.KEY_W -> currentPos.withRelativeY(-1) + KeyCode.KEY_A -> currentPos.withRelativeX(-1) + KeyCode.KEY_D -> currentPos.withRelativeY(1) + KeyCode.KEY_S -> currentPos.withRelativeX(1) else -> { // If some key is pressed other than WASD, then we just return the current position, so no movement will happen currentPos