mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 10:41:15 +00:00
Change radius
This commit is contained in:
parent
7d340430a3
commit
797aac1410
@ -636,7 +636,7 @@ MxBool LegoInputManager::HandleTouchEvent(SDL_Event* p_event, TouchScheme p_touc
|
||||
break;
|
||||
case SDL_EVENT_FINGER_MOTION:
|
||||
if (event.fingerID == finger) {
|
||||
const float thumbstickRadius = 0.05f;
|
||||
const float thumbstickRadius = 0.25f;
|
||||
const float deltaX =
|
||||
SDL_clamp(event.x - m_touchVirtualThumbOrigin.x, -thumbstickRadius, thumbstickRadius);
|
||||
const float deltaY =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user