Skip to main content

HitboxTouchLogic

Kindclass
Packagemobile.flixel
Full namemobile.flixel.HitboxTouchLogic
Sourcesource/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​

NameTypeStaticDefaultNotes
NONEIntyes0—
PRESSIntyes1—
RELEASEIntyes2—
CANCELIntyes3—

Public methods​

transition​

static inline function transition(wasPressed:Bool, anyPressedOver:Bool, anyReleasedOver:Bool):Int
ParameterTypeDefault
wasPressedBool—
anyPressedOverBool—
anyReleasedOverBool—

View source