v1.3.0: implemented new radial menus and made a bunch of keybind changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user