FzzyKeybindSimple

data class FzzyKeybindSimple(val inputCode: Int, val type: ContextInput, val ctrl: TriState, val shift: TriState, val alt: TriState) : FzzyKeybind

Basic implementation of Relevant that uses TriState for processing modifier inputs. TriState.DEFAULT auto-passes the modifier key (either pressed or not-pressed will be considered relevant)

Author

fzzyhmstrs

Since

0.6.5

Parameters

inputCode

Int keycode of the key to test for

ctrl

TriState whether ctrl modifier key is needed or not. Generally if ctrl is TriState.TRUE, the other modifiers should be TriState.FALSE to avoid input relevance ambiguity

shift

TriState whether shift modifier key is needed or not. Generally if shift is TriState.TRUE, the other modifiers should be TriState.FALSE to avoid input relevance ambiguity

alt

TriState whether alt modifier key is needed or not. Generally if alt is TriState.TRUE, the other modifiers should be TriState.FALSE to avoid input relevance ambiguity

Constructors

Link copied to clipboard
constructor(inputCode: Int, type: ContextInput, ctrl: Boolean, shift: Boolean, alt: Boolean)
constructor(inputCode: Int, type: ContextInput, ctrl: TriState, shift: TriState, alt: TriState)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun clone(): FzzyKeybind

Copies the current keybind object where possible.

Link copied to clipboard

Creates a compound keybind (multiple-choice) with other. If this compound is already compound, the new addition will be added as a further choice.

Link copied to clipboard

Keybinds contained within this keybind.

Link copied to clipboard
open override fun keybind(): MutableText

Creates a Text representation of the current keybind

Link copied to clipboard
open override fun relevant(inputCode: Int, ctrl: Boolean, shift: Boolean, alt: Boolean): Boolean

Override from Relevant. Determines if an input is relevant for the handler or not.