v0.8.0: refactored most game actions into the core module

This commit is contained in:
Evan Debenham
2019-12-14 00:44:42 -05:00
parent f269d68a27
commit 53b3d1e9fe
16 changed files with 124 additions and 90 deletions

View File

@@ -21,7 +21,7 @@
package com.watabou.noosa;
import com.watabou.input.KeyAction;
import com.watabou.input.GameAction;
import com.watabou.input.KeyBindings;
import com.watabou.input.KeyEvent;
import com.watabou.utils.Signal;
@@ -36,10 +36,10 @@ public class Scene extends Group {
public boolean onSignal( KeyEvent event ) {
if (Game.instance != null && event.pressed) {
switch (KeyBindings.getBinding( event )) {
case KeyAction.BACK:
case GameAction.BACK:
onBackPressed();
break;
case KeyAction.MENU:
case GameAction.MENU:
onMenuPressed();
break;
}