Fix Spacebar key binding in LWJGL3; Switch to integer/named key. (#5633)

This commit is contained in:
will-ca 2021-11-02 23:48:45 -07:00 committed by GitHub
parent a1e0b686b1
commit ad545e47da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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