v1.3.0: implemented new radial menus and made a bunch of keybind changes

This commit is contained in:
Evan Debenham
2022-07-01 13:37:51 -04:00
parent 2e595ed392
commit e3687bb2ca
21 changed files with 620 additions and 98 deletions

View File

@@ -23,10 +23,13 @@ package com.watabou.input;
import com.badlogic.gdx.Input;
import com.watabou.noosa.Game;
import com.watabou.noosa.ui.Cursor;
import com.watabou.utils.GameMath;
import com.watabou.utils.PointF;
import com.watabou.utils.Signal;
import java.util.ArrayList;
import java.util.Currency;
import java.util.HashMap;
public class PointerEvent {
@@ -57,6 +60,10 @@ public class PointerEvent {
}
public PointerEvent( int x, int y, int id, Type type, int button){
if (Cursor.isCursorCaptured()){
x = Game.width/2;
y = Game.width/2;
}
start = current = new PointF(x, y);
this.id = id;
this.type = type;