fluid.input

Members

Classes

InputNode
class InputNode(Parent : Node)

Represents a general input node.

Enums

FluidInputAction
enum FluidInputAction

Default input actions one can listen to.

whileDown
enum whileDown

Make a InputAction handler react to every frame as long as the action is being held (mouse button held down, key held down, etc.).

Functions

isActive
bool isActive(const(LayoutTree)* tree)

Check if any stroke bound to this action is active.

isDown
bool isDown(LayoutTree* tree)

Check if any stroke bound to this action is being held.

isFocusActive
bool isFocusActive(LayoutTree* tree)

Check if a keyboard or gamepad stroke bound to this action is active.

isFocusDown
bool isFocusDown(LayoutTree* tree)

Check if a keyboard or gamepad stroke bound to this action is being held.

isMouseActive
bool isMouseActive(LayoutTree* tree)

Check if a mouse stroke bound to this action is active

isMouseDown
bool isMouseDown(LayoutTree* tree)

Check if a mouse stroke bound to this action is being held.

Interfaces

FluidFocusable
interface FluidFocusable

An interface to be implemented by all nodes that can take focus.

FluidHoverable
interface FluidHoverable

An interface to be implemented by all nodes that can perform actions when hovered (eg. on click)

Structs

InputAction
struct InputAction(alias actionType)

This meta-UDA can be attached to an enum, so Fluid would recognize members of said enum as an UDA defining input actions. As an UDA, this template should be used without instantiating.

InputActionID
struct InputActionID

ID of an input action.

InputBinding
struct InputBinding

Binding of an input stroke to an input action.

InputLayer
struct InputLayer

A layer groups input bindings by common key modifiers.

InputStroke
struct InputStroke

Represents a key or button input combination.

Templates

isInputActionType
template isInputActionType(alias actionType)

Check if the given symbol is an input action type.

Meta