InputStroke

Represents a key or button input combination.

Constructors

this
this(T items)
Undocumented in source.
this
this(Item[] items)
Undocumented in source.

Members

Aliases

Item
alias Item = SumType!(KeyboardKey, MouseButton, GamepadButton)
Undocumented in source.

Functions

isActive
bool isActive(FluidBackend backend)

Check if the stroke has been triggered during this frame.

isDown
bool isDown(FluidBackend backend)

Check if all keys or buttons required for the stroke are held down.

isMouseStroke
bool isMouseStroke()

Check if the last item of this input stroke is done with a mouse

length
size_t length()

Get number of items in the stroke.

modifiers
InputStroke modifiers()

Get a copy of the input stroke with the last item removed, if any.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

isItemActive
bool isItemActive(FluidBackend backend, Item item)

Check if the given item is triggered.

isItemDown
bool isItemDown(FluidBackend backend, Item item)

Check if the given is held down.

isMouseItem
bool isMouseItem(Item item)

Check if the given item is done with a mouse.

Variables

input
Item[] input;
Undocumented in source.

Meta