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
@@ -21,7 +21,7 @@
package com.watabou.noosa.ui;
import com.watabou.input.KeyAction;
import com.watabou.input.GameAction;
import com.watabou.input.KeyBindings;
import com.watabou.input.KeyEvent;
import com.watabou.input.PointerEvent;
@@ -38,7 +38,7 @@ public class Button extends Component {
protected boolean pressed;
protected float pressTime;
protected boolean processed;
@Override
protected void createChildren() {
hotArea = new PointerArea( 0, 0, 0, 0 ) {
@@ -79,7 +79,7 @@ public class Button extends Component {
private Signal.Listener<KeyEvent> keyListener;
public int keyAction(){
return KeyAction.NONE;
return GameAction.NONE;
}
@Override