DEADSOFTWARE

upgrade dependencies and gradle
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / GameInput.java
index ca603176453f1ac7e219c6d825c11dfeb1f8f528..594f8cc64d16df74b1c1dca1b7f032ad1a6b1be7 100644 (file)
@@ -400,10 +400,10 @@ public class GameInput {
         }
     }
 
-    public void scrolled(int amount) {
+    public void scrolled(float amountX, float amountY) {
         switch (mMainConfig.getGameUiWindow()) {
             case NONE:
-                mPlayer.slot += amount;
+                mPlayer.slot += (int) amountY;
                 if (mPlayer.slot < 0) {
                     mPlayer.slot = 8;
                 }
@@ -412,7 +412,7 @@ public class GameInput {
                 }
                 break;
             case CREATIVE_INVENTORY:
-                mCreativeScroll += amount;
+                mCreativeScroll += (int) amountY;
                 if (mCreativeScroll < 0) {
                     mCreativeScroll = 0;
                 }