diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameInput.java b/core/src/ru/deadsoftware/cavedroid/game/GameInput.java
index ca603176453f1ac7e219c6d825c11dfeb1f8f528..594f8cc64d16df74b1c1dca1b7f032ad1a6b1be7 100644 (file)
}
}
- 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;
}
}
break;
case CREATIVE_INVENTORY:
- mCreativeScroll += amount;
+ mCreativeScroll += (int) amountY;
if (mCreativeScroll < 0) {
mCreativeScroll = 0;
}