From ad545e47daca6000164f2643156781f0d9ecace0 Mon Sep 17 00:00:00 2001 From: will-ca Date: Tue, 2 Nov 2021 23:48:45 -0700 Subject: [PATCH] Fix Spacebar key binding in LWJGL3; Switch to integer/named key. (#5633) --- core/src/com/unciv/ui/worldscreen/WorldScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt index 6faa391300..9c54057d73 100644 --- a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt +++ b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt @@ -565,7 +565,7 @@ class WorldScreen(val gameInfo: GameInfo, val viewingCiv:CivilizationInfo) : Cam nextTurnButton.labelCell.pad(10f) val nextTurnActionWrapped = { nextTurnAction() } nextTurnButton.onClick(nextTurnActionWrapped) - keyPressDispatcher[' '] = nextTurnActionWrapped + keyPressDispatcher[Input.Keys.SPACE] = nextTurnActionWrapped keyPressDispatcher['n'] = nextTurnActionWrapped return nextTurnButton