makeFlag

open fun makeFlag(actionState: Int, directions: Int): Int(source)

Shifts the given direction flags to the offset of the given action state.

Return

And integer that represents the given directions in the provided actionState.

Parameters

actionState

The action state you want to get flags in. Should be one of ACTION_STATE_IDLE, ACTION_STATE_SWIPE or ACTION_STATE_DRAG.

directions

The direction flags. Can be composed from UP, DOWN, RIGHT, LEFTSTART and END.