diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-31 12:10:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-31 12:10:35 +0200 |
commit | 05e7f467bd6c062a4b658d3a60bbadee804c7efc (patch) | |
tree | 37c2c2a7f94a51f52a2340eb24f3c6491741ffd6 /test/src/ch/asynk/gdx/boardgame | |
parent | a0b0ae5396df26c1a65081b093709696a0c0166e (diff) | |
download | gdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.zip gdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.tar.gz |
Camera : fix translate
Diffstat (limited to 'test/src/ch/asynk/gdx/boardgame')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java index 4c51780..b8c4acb 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java @@ -158,8 +158,8 @@ public abstract class AbstractScreen implements Screen } @Override public boolean touchDragged(int x, int y, int pointer) { - int dx = (int) (dragPos.x - x); - int dy = (int) (dragPos.y - y); + int dx = (int) (x - dragPos.x); + int dy = (int) (y - dragPos.y); dragPos.set(x, y); onDragged(dx, dy); return true; |