BooleanInput
A class in Root.Township, the global namespace.
An on or off controller input value (a button), usable directly as a bool.
- Listed in Global namespace: A to B
- Inherits or implements
InputSource
Constructors
| Member | What it is |
|---|---|
BooleanInput() | Creates a BooleanInput with default values. |
Methods
| Member | What it is |
|---|---|
static BooleanInput op_Explicit(bool value) | Makes a BooleanInput with the given state. |
static bool op_Implicit(BooleanInput input) | Converts to bool: the current state. |
void Serialize(Stream stream) | Reads or writes the state as one bool. |
Used in
Members of other types that take, return or hold a BooleanInput:
ControllerInput.GetButton, ControllerInput.Grab, ControllerInput.GrabAssist, ControllerInput.HardGrab, ControllerInput.LockForGestures, ControllerInput.LongPhoto, ControllerInput.MetaMenu, ControllerInput.ReleaseToggleGrab, ControllerInput.SendItemLeft, ControllerInput.SendItemRight, ControllerInput.SnapTurnLeft, ControllerInput.SnapTurnRight, ControllerInput.SwipeTouch, ControllerInput.TakePhoto, ControllerInput.Teleport, ControllerInput.ToggleGrab, ControllerInput.ToggleMetaMenu, ControllerInput.ToggleRun, LongHoldInteractable.GripTimer, LongHoldInteractable.GripTimerPouch, PickupContainer.GripTimer, PickupContainer.GripTimerPouch.