detectZone

fun detectZone(x: Float, y: Float, screenWidth: Float, screenHeight: Float, edgeThreshPx: Float): RadialMenuMath.MenuZone(source)

Detects which screen zone the touch point falls in.

Corners are checked first (both x AND y within edgeThreshPx of the respective edges). Anything else returns MenuZone.CENTER.

Return

The MenuZone the touch falls in.

Since

1.0.3

Parameters

x

Touch X position in pixels.

y

Touch Y position in pixels.

screenWidth

Screen width in pixels.

screenHeight

Screen height in pixels.

edgeThreshPx

Pixel threshold for corner detection.