fluid.input

Members

Aliases

WhileDown
alias WhileDown = WhileHeld
Undocumented in source.
runInputActionHandler
alias runInputActionHandler = fluid.io.action.runInputActionHandler
Undocumented in source.
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.

WhileHeld
enum WhileHeld

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

isInputActionType
eponymoustemplate isInputActionType(alias actionType)
Undocumented in source.
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.

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.

Meta