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