Docs / Input binder

Glossary: InputBinderResult

The values of InputBinderResult.

Why a bind succeeded or didn’t.

An enum, in the namespace BorrowedTorch.InputBinding.Types. The Result of a BindResult. A bind that fails for several reasons reports the first, in the order below. The binding page shows it in context.

Values

None →

No result: the value of a BindResult no bind returned, such as a default one. A bind never returns it, and it isn’t Success.

Success →

Bound. The input runs the action from the next update.

InputNull →

The input was null. To empty a slot, use Unbind.

ActionNull →

There was no action. A handle always has one, so binding through it never returns this.

IndexOutsideOfRange →

The slot is below 0, or not below InputBindingsPerAction.

TypesMismatch →

The input’s shape isn’t the action’s InputType: a key for a stick’s action, say.

InputBoundToOtherAction →

Another action has the input, and the bind wasn’t forced. ConflictingActionHandle says which.

ActionNotRegistered →

The handle’s action was unregistered.