mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fix Spacebar key binding in LWJGL3; Switch to integer/named key. (#5633)
This commit is contained in:
parent
a1e0b686b1
commit
ad545e47da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user