mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Adjust touchscreen_sensitivity to display density
This commit is contained in:
parent
00a3e6bbd7
commit
fa0745f7da
1 changed files with 2 additions and 2 deletions
|
@ -832,8 +832,8 @@ 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;
|
||||||
|
|
||||||
// adapt to similar behavior as pc screen
|
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f)
|
||||||
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f) * 3.0f;
|
* 6.0f / RenderingEngine::getDisplayDensity();
|
||||||
|
|
||||||
// update camera_yaw and camera_pitch
|
// update camera_yaw and camera_pitch
|
||||||
m_camera_yaw_change -= dir_free.X * d;
|
m_camera_yaw_change -= dir_free.X * d;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue