mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Small setting-related fixes (#13755)
This commit is contained in:
parent
852d6a7976
commit
7b56daa236
4 changed files with 20 additions and 9 deletions
|
@ -829,7 +829,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||
m_pointer_pos[event.TouchInput.ID] = touch_pos;
|
||||
|
||||
// adapt to similar behavior as pc screen
|
||||
const double d = g_settings->getFloat("mouse_sensitivity", 0.001f, 10.0f) * 3.0f;
|
||||
const double d = g_settings->getFloat("touchscreen_sensitivity", 0.001f, 10.0f) * 3.0f;
|
||||
|
||||
m_camera_yaw_change -= dir_free.X * d;
|
||||
m_camera_pitch = MYMIN(MYMAX(m_camera_pitch + (dir_free.Y * d), -180.0f), 180.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue