mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -881,8 +881,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||
s32 dyj = event.TouchInput.Y - m_screensize.Y + button_size * 5.0f / 2.0f;
|
||||
bool inside_joystick = (dxj * dxj + dyj * dyj <= button_size * button_size * 1.5 * 1.5);
|
||||
|
||||
if (m_joystick_has_really_moved ||
|
||||
(!m_joystick_has_really_moved && inside_joystick) ||
|
||||
if (m_joystick_has_really_moved || inside_joystick ||
|
||||
(!m_fixed_joystick &&
|
||||
distance_sq > m_touchscreen_threshold * m_touchscreen_threshold)) {
|
||||
m_joystick_has_really_moved = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue