relevant

fun relevant(inputCode: Int, ctrl: Boolean, shift: Boolean, alt: Boolean): Boolean

Determines whether this type is relevant to the user inputs provided. In general, only the key state you care about should be checked. For example, if your keybind is "X", check that the inputCode is correct but ignore ctrl/shift/alt entirely, unless it is specifically important that they not be pressed.

Return

true if the type is relevant to the current user input, false otherwise

Author

fzzyhmstrs

Since

0.6.0

Parameters

inputCode

Integer code. For keyboard inputs, will be the keyboard code, for mouse inputs, will be the mouse button code.

ctrl

whether the Ctrl key is pressed

shift

whether the Shift key is pressed

alt

whether the Alt key is pressed