Skip to content

Commit

Permalink
Adjust touchscreen_sensitivity to display density
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Mar 1, 2024
1 parent 00a3e6b commit fa0745f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/touchscreengui.cpp
Expand Up @@ -832,8 +832,8 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
m_move_pos = 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) * 3.0f;
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f)
* 6.0f / RenderingEngine::getDisplayDensity();

// update camera_yaw and camera_pitch
m_camera_yaw_change -= dir_free.X * d;
Expand Down

0 comments on commit fa0745f

Please sign in to comment.