Skip to main content

ZepetoInputControl

RootNamespace.ZepetoInputControl

Class responsible for managing input control schemes and actions for ZEPETO World.

Hierarchy

Constructors

constructor

new ZepetoInputControl()

Overrides

System.Object.constructor

Accessors

Camera

get Camera(): CameraActions

Returns the set of camera-related input actions.

Returns

CameraActions


GamepadScheme

get GamepadScheme(): InputControlScheme

Returns the gamepad control scheme.

Returns

InputControlScheme


JoystickScheme

get JoystickScheme(): InputControlScheme

Returns the joystick control scheme.

Returns

InputControlScheme


KeyboardMouseScheme

get KeyboardMouseScheme(): InputControlScheme

Returns the keyboard and mouse control scheme.

Returns

InputControlScheme


Player

get Player(): PlayerActions

Returns grouped player-related input actions.

Returns

PlayerActions


TouchScheme

get TouchScheme(): InputControlScheme

Returns the touch control scheme.

Returns

InputControlScheme


UI

get UI(): UIActions

Returns an instance of the UIActions structure, connecting it with the current ZepetoInputControl context.

Returns

UIActions


XRScheme

get XRScheme(): InputControlScheme

Returns the XR (Extended Reality) control scheme.

Returns

InputControlScheme


asset

get asset(): InputActionAsset

Returns the input action asset.

Returns

InputActionAsset


bindingMask

get bindingMask(): Nullable$1<InputBinding>

Binding mask to filter out specific bindings.

Returns

Nullable$1<InputBinding>

set bindingMask(value): void

Binding mask to filter out specific bindings.

Parameters

NameType
valueNullable$1<InputBinding>

Returns

void


controlSchemes

get controlSchemes(): ReadOnlyArray$1<InputControlScheme>

Returns the input control schemes.

Returns

ReadOnlyArray$1<InputControlScheme>


devices

get devices(): Nullable$1<ReadOnlyArray$1<InputDevice>>

Devices that are applicable to the input control.

Returns

Nullable$1<ReadOnlyArray$1<InputDevice>>

set devices(value): void

Devices that are applicable to the input control.

Parameters

NameType
valueNullable$1<ReadOnlyArray$1<InputDevice>>

Returns

void

Methods

Contains

Contains($action): boolean

Determines whether the specified action is part of the asset.

Parameters

NameTypeDescription
$actionInputActionThe action to check for.

Returns

boolean

If the action is present, the method returns true.


Disable

Disable(): void

Disables all the input actions.

Returns

void


Dispose

Dispose(): void

Cleans up resources used by the input control, particularly the InputActionAsset.

Returns

void


Enable

Enable(): void

Enables all the input actions defined in the asset.

Returns

void


GetEnumerator

GetEnumerator(): IEnumerator$1<InputAction>

Returns an enumerator that iterates through the actions.

Returns

IEnumerator$1<InputAction>

An enumerator that iterates through the actions.