hmm
This commit is contained in:
@@ -866,15 +866,17 @@ void Minecraft::tickInput() {
|
|||||||
gameMode->stopDestroyBlock();
|
gameMode->stopDestroyBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Mouse::isButtonDown(MouseAction::ACTION_RIGHT)) {
|
||||||
|
gameMode->releaseUsingItem(player);
|
||||||
|
}
|
||||||
|
|
||||||
if (useTouchscreen()) {
|
if (useTouchscreen()) {
|
||||||
// Touch: gesture recognizer classifies the action type (turn/destroy/build)
|
// Touch: gesture recognizer classifies the action type (turn/destroy/build)
|
||||||
BuildActionIntention bai;
|
BuildActionIntention bai;
|
||||||
if (inputHolder && inputHolder->getBuildInput()->tickBuild(player, &bai)) {
|
if (inputHolder && inputHolder->getBuildInput()->tickBuild(player, &bai)) {
|
||||||
handleBuildAction(&bai);
|
handleBuildAction(&bai);
|
||||||
}
|
} else {
|
||||||
|
gameMode->stopDestroyBlock();
|
||||||
if (!Mouse::isButtonDown(MouseAction::ACTION_RIGHT)) {
|
|
||||||
gameMode->releaseUsingItem(player);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Desktop: left mouse = destroy/attack
|
// Desktop: left mouse = destroy/attack
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ void TouchscreenInput_TestFps::onConfigChanged(const Config& c) {
|
|||||||
|
|
||||||
float maxPixels = _minecraft->pixelCalc.millimetersToPixels(10);
|
float maxPixels = _minecraft->pixelCalc.millimetersToPixels(10);
|
||||||
// float btnSize = Mth::Min(18 * Gui::GuiScale, maxPixels);
|
// float btnSize = Mth::Min(18 * Gui::GuiScale, maxPixels);
|
||||||
float btnSize = pc.millimetersToPixels(50);
|
float btnSize = pc.millimetersToPixels(50 * Gui::GuiScale);
|
||||||
_model.addArea(AREA_PAUSE, aPause = new RectangleArea(w - 4 - btnSize, 4, w - 4, 4 + btnSize));
|
_model.addArea(AREA_PAUSE, aPause = new RectangleArea(w - 4 - btnSize, 4, w - 4, 4 + btnSize));
|
||||||
_model.addArea(AREA_CHAT, aChat = new RectangleArea(w - 8 - btnSize * 2, 4, w - 8 - btnSize, 4 + btnSize));
|
_model.addArea(AREA_CHAT, aChat = new RectangleArea(w - 8 - btnSize * 2, 4, w - 8 - btnSize, 4 + btnSize));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user