HitboxTouchLogic
| Kind | class |
| Package | mobile.flixel |
| Full name | mobile.flixel.HitboxTouchLogic |
| Source | source/mobile/flixel/HitboxTouchLogic.hx |
Input transitions for a lane that may be held by several fingers at once. Only the first contact presses it, and only the last contact releases it. Kept independent of Flixel so overlapping-touch cases can be tested directly.
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
NONE | Int | yes | 0 | — |
PRESS | Int | yes | 1 | — |
RELEASE | Int | yes | 2 | — |
CANCEL | Int | yes | 3 | — |
Public methods
transition
static inline function transition(wasPressed:Bool, anyPressedOver:Bool, anyReleasedOver:Bool):Int
| Parameter | Type | Default |
|---|---|---|
wasPressed | Bool | — |
anyPressedOver | Bool | — |
anyReleasedOver | Bool | — |