mirror of
https://github.com/minetest/minetest.git
synced 2025-01-11 15:57:29 +01:00
Touchscreen: Allow camera movement while digging without touch_use_crosshair
This commit is contained in:
parent
bb7f57b095
commit
00a3e6bbd7
@ -832,7 +832,6 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||||||
m_move_pos = touch_pos;
|
m_move_pos = touch_pos;
|
||||||
m_pointer_pos[event.TouchInput.ID] = touch_pos;
|
m_pointer_pos[event.TouchInput.ID] = touch_pos;
|
||||||
|
|
||||||
if (m_tap_state == TapState::None || m_draw_crosshair) {
|
|
||||||
// adapt to similar behavior as pc screen
|
// adapt to similar behavior as pc screen
|
||||||
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f) * 3.0f;
|
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f) * 3.0f;
|
||||||
|
|
||||||
@ -841,7 +840,6 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||||||
m_camera_pitch_change += dir_free.Y * d;
|
m_camera_pitch_change += dir_free.Y * d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (m_has_joystick_id && event.TouchInput.ID == m_joystick_id) {
|
if (m_has_joystick_id && event.TouchInput.ID == m_joystick_id) {
|
||||||
v2s32 dir = dir_free;
|
v2s32 dir = dir_free;
|
||||||
|
Loading…
Reference in New Issue
Block a user