fluid.input

Members

Aliases

whileDown
deprecated alias whileDown = WhileDown
Undocumented in source.

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.).

shouldActivateWhileDown
eponymoustemplate shouldActivateWhileDown(alias overload)

Check for @WhileDown

Functions

isActive
bool isActive(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.

runInputActionHandler
bool runInputActionHandler(T action, bool delegate(T action) @(safe) handler)
bool runInputActionHandler(T action, void delegate(T action) @(safe) handler)
bool runInputActionHandler(T , bool delegate() @(safe) handler)
bool runInputActionHandler(T , void delegate() @(safe) handler)

Helper function to run an input action handler through one of the possible overloads.

Interfaces

FluidDroppable
interface FluidDroppable

Interface for container nodes that support dropping other nodes inside.

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)

FluidScrollable
interface FluidScrollable

An interface to be implemented by nodes that accept scroll input.

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