textbuttonlist fixed incorrect vertical placement

This commit is contained in:
Minjae Song
2018-12-09 17:11:13 +09:00
parent 32ecdc4b4d
commit eb1a3dcd14
4 changed files with 28 additions and 14 deletions

View File

@@ -20,6 +20,9 @@ object KeyToggler {
return currentState[key]
}
/**
* Put this into the each scene's update/render method.
*/
fun update(gameMode: Boolean = true) {
for (it in 0..255) {
if (gameMode && it in gameKeys &&