skrypton-api / com.waicool20.skrypton.enums / MouseButton / fromSikuliButtons

fromSikuliButtons

fun fromSikuliButtons(buttons: Int): Set<MouseButton>

Gets a set of MouseButton given a buttons mask formed from java.awt.event.MouseEvent.

Parameters

buttons - The java.awt.event.MouseEvent mouse button mask.

Return
A Set of MouseButton, may be empty.