UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 13.6 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TouchController = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function TouchController(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _activeVisual = props._activeVisual, User = props.User, Node = props.Node, _isActive = props._isActive, _batteryLevelStream = props._batteryLevelStream, _batteryChargingStream = props._batteryChargingStream, _start = props._start, _buttonYB = props._buttonYB, _buttonXA = props._buttonXA, _buttonYB_Touch = props._buttonYB_Touch, _buttonXA_Touch = props._buttonXA_Touch, _thumbRestTouch = props._thumbRestTouch, _grip = props._grip, _gripClick = props._gripClick, _joystick = props._joystick, _joystickTouch = props._joystickTouch, _joystickClick = props._joystickClick, _trigger = props._trigger, _triggerTouch = props._triggerTouch, _triggerClick = props._triggerClick, _model = props._model; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LogiX.Input.TouchController", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.CleanupRef`1[FrooxEngine.Slot]", name: "_activeVisual", id: typeof _activeVisual === "object" && "id" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.id : undefined, value: typeof _activeVisual === "object" && "value" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.value : _activeVisual, isRaw: typeof _activeVisual === "object" && "isRaw" in _activeVisual && _activeVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[FrooxEngine.User]", name: "User", id: typeof User === "object" && "id" in User ? User === null || User === void 0 ? void 0 : User.id : undefined, value: typeof User === "object" && "value" in User ? User === null || User === void 0 ? void 0 : User.value : User, isRaw: typeof User === "object" && "isRaw" in User && User.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[FrooxEngine.Chirality]", name: "Node", id: typeof Node === "object" && "id" in Node ? Node === null || Node === void 0 ? void 0 : Node.id : undefined, value: typeof Node === "object" && "value" in Node ? Node === null || Node === void 0 ? void 0 : Node.value : Node, isRaw: typeof Node === "object" && "isRaw" in Node && Node.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_isActive", id: typeof _isActive === "object" && "id" in _isActive ? _isActive === null || _isActive === void 0 ? void 0 : _isActive.id : undefined, value: typeof _isActive === "object" && "value" in _isActive ? _isActive === null || _isActive === void 0 ? void 0 : _isActive.value : _isActive, isRaw: typeof _isActive === "object" && "isRaw" in _isActive && _isActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Single]]", name: "_batteryLevelStream", id: typeof _batteryLevelStream === "object" && "id" in _batteryLevelStream ? _batteryLevelStream === null || _batteryLevelStream === void 0 ? void 0 : _batteryLevelStream.id : undefined, value: typeof _batteryLevelStream === "object" && "value" in _batteryLevelStream ? _batteryLevelStream === null || _batteryLevelStream === void 0 ? void 0 : _batteryLevelStream.value : _batteryLevelStream, isRaw: typeof _batteryLevelStream === "object" && "isRaw" in _batteryLevelStream && _batteryLevelStream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_batteryChargingStream", id: typeof _batteryChargingStream === "object" && "id" in _batteryChargingStream ? _batteryChargingStream === null || _batteryChargingStream === void 0 ? void 0 : _batteryChargingStream.id : undefined, value: typeof _batteryChargingStream === "object" && "value" in _batteryChargingStream ? _batteryChargingStream === null || _batteryChargingStream === void 0 ? void 0 : _batteryChargingStream.value : _batteryChargingStream, isRaw: typeof _batteryChargingStream === "object" && "isRaw" in _batteryChargingStream && _batteryChargingStream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_start", id: typeof _start === "object" && "id" in _start ? _start === null || _start === void 0 ? void 0 : _start.id : undefined, value: typeof _start === "object" && "value" in _start ? _start === null || _start === void 0 ? void 0 : _start.value : _start, isRaw: typeof _start === "object" && "isRaw" in _start && _start.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_buttonYB", id: typeof _buttonYB === "object" && "id" in _buttonYB ? _buttonYB === null || _buttonYB === void 0 ? void 0 : _buttonYB.id : undefined, value: typeof _buttonYB === "object" && "value" in _buttonYB ? _buttonYB === null || _buttonYB === void 0 ? void 0 : _buttonYB.value : _buttonYB, isRaw: typeof _buttonYB === "object" && "isRaw" in _buttonYB && _buttonYB.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_buttonXA", id: typeof _buttonXA === "object" && "id" in _buttonXA ? _buttonXA === null || _buttonXA === void 0 ? void 0 : _buttonXA.id : undefined, value: typeof _buttonXA === "object" && "value" in _buttonXA ? _buttonXA === null || _buttonXA === void 0 ? void 0 : _buttonXA.value : _buttonXA, isRaw: typeof _buttonXA === "object" && "isRaw" in _buttonXA && _buttonXA.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_buttonYB_Touch", id: typeof _buttonYB_Touch === "object" && "id" in _buttonYB_Touch ? _buttonYB_Touch === null || _buttonYB_Touch === void 0 ? void 0 : _buttonYB_Touch.id : undefined, value: typeof _buttonYB_Touch === "object" && "value" in _buttonYB_Touch ? _buttonYB_Touch === null || _buttonYB_Touch === void 0 ? void 0 : _buttonYB_Touch.value : _buttonYB_Touch, isRaw: typeof _buttonYB_Touch === "object" && "isRaw" in _buttonYB_Touch && _buttonYB_Touch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_buttonXA_Touch", id: typeof _buttonXA_Touch === "object" && "id" in _buttonXA_Touch ? _buttonXA_Touch === null || _buttonXA_Touch === void 0 ? void 0 : _buttonXA_Touch.id : undefined, value: typeof _buttonXA_Touch === "object" && "value" in _buttonXA_Touch ? _buttonXA_Touch === null || _buttonXA_Touch === void 0 ? void 0 : _buttonXA_Touch.value : _buttonXA_Touch, isRaw: typeof _buttonXA_Touch === "object" && "isRaw" in _buttonXA_Touch && _buttonXA_Touch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_thumbRestTouch", id: typeof _thumbRestTouch === "object" && "id" in _thumbRestTouch ? _thumbRestTouch === null || _thumbRestTouch === void 0 ? void 0 : _thumbRestTouch.id : undefined, value: typeof _thumbRestTouch === "object" && "value" in _thumbRestTouch ? _thumbRestTouch === null || _thumbRestTouch === void 0 ? void 0 : _thumbRestTouch.value : _thumbRestTouch, isRaw: typeof _thumbRestTouch === "object" && "isRaw" in _thumbRestTouch && _thumbRestTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Single]]", name: "_grip", id: typeof _grip === "object" && "id" in _grip ? _grip === null || _grip === void 0 ? void 0 : _grip.id : undefined, value: typeof _grip === "object" && "value" in _grip ? _grip === null || _grip === void 0 ? void 0 : _grip.value : _grip, isRaw: typeof _grip === "object" && "isRaw" in _grip && _grip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_gripClick", id: typeof _gripClick === "object" && "id" in _gripClick ? _gripClick === null || _gripClick === void 0 ? void 0 : _gripClick.id : undefined, value: typeof _gripClick === "object" && "value" in _gripClick ? _gripClick === null || _gripClick === void 0 ? void 0 : _gripClick.value : _gripClick, isRaw: typeof _gripClick === "object" && "isRaw" in _gripClick && _gripClick.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[BaseX.float2]]", name: "_joystick", id: typeof _joystick === "object" && "id" in _joystick ? _joystick === null || _joystick === void 0 ? void 0 : _joystick.id : undefined, value: typeof _joystick === "object" && "value" in _joystick ? _joystick === null || _joystick === void 0 ? void 0 : _joystick.value : _joystick, isRaw: typeof _joystick === "object" && "isRaw" in _joystick && _joystick.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_joystickTouch", id: typeof _joystickTouch === "object" && "id" in _joystickTouch ? _joystickTouch === null || _joystickTouch === void 0 ? void 0 : _joystickTouch.id : undefined, value: typeof _joystickTouch === "object" && "value" in _joystickTouch ? _joystickTouch === null || _joystickTouch === void 0 ? void 0 : _joystickTouch.value : _joystickTouch, isRaw: typeof _joystickTouch === "object" && "isRaw" in _joystickTouch && _joystickTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_joystickClick", id: typeof _joystickClick === "object" && "id" in _joystickClick ? _joystickClick === null || _joystickClick === void 0 ? void 0 : _joystickClick.id : undefined, value: typeof _joystickClick === "object" && "value" in _joystickClick ? _joystickClick === null || _joystickClick === void 0 ? void 0 : _joystickClick.value : _joystickClick, isRaw: typeof _joystickClick === "object" && "isRaw" in _joystickClick && _joystickClick.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Single]]", name: "_trigger", id: typeof _trigger === "object" && "id" in _trigger ? _trigger === null || _trigger === void 0 ? void 0 : _trigger.id : undefined, value: typeof _trigger === "object" && "value" in _trigger ? _trigger === null || _trigger === void 0 ? void 0 : _trigger.value : _trigger, isRaw: typeof _trigger === "object" && "isRaw" in _trigger && _trigger.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_triggerTouch", id: typeof _triggerTouch === "object" && "id" in _triggerTouch ? _triggerTouch === null || _triggerTouch === void 0 ? void 0 : _triggerTouch.id : undefined, value: typeof _triggerTouch === "object" && "value" in _triggerTouch ? _triggerTouch === null || _triggerTouch === void 0 ? void 0 : _triggerTouch.value : _triggerTouch, isRaw: typeof _triggerTouch === "object" && "isRaw" in _triggerTouch && _triggerTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[System.Boolean]]", name: "_triggerClick", id: typeof _triggerClick === "object" && "id" in _triggerClick ? _triggerClick === null || _triggerClick === void 0 ? void 0 : _triggerClick.id : undefined, value: typeof _triggerClick === "object" && "value" in _triggerClick ? _triggerClick === null || _triggerClick === void 0 ? void 0 : _triggerClick.value : _triggerClick, isRaw: typeof _triggerClick === "object" && "isRaw" in _triggerClick && _triggerClick.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.TouchController+Model]", name: "_model", id: typeof _model === "object" && "id" in _model ? _model === null || _model === void 0 ? void 0 : _model.id : undefined, value: typeof _model === "object" && "value" in _model ? _model === null || _model === void 0 ? void 0 : _model.value : _model, isRaw: typeof _model === "object" && "isRaw" in _model && _model.isRaw ? true : undefined })] }))); } exports.TouchController = TouchController; ;