neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 3.74 kB
JavaScript
;
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.VirtualShift = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function VirtualShift(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Keyboard = props.Keyboard, HoldPressInterval = props.HoldPressInterval, AlwaysHold = props.AlwaysHold, _lastPress = props._lastPress;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.VirtualShift", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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.RelayRef`1[FrooxEngine.VirtualKeyboard]", name: "Keyboard", id: typeof Keyboard === "object" && "id" in Keyboard ? Keyboard === null || Keyboard === void 0 ? void 0 : Keyboard.id : undefined, value: typeof Keyboard === "object" && "value" in Keyboard ? Keyboard === null || Keyboard === void 0 ? void 0 : Keyboard.value : Keyboard, isRaw: typeof Keyboard === "object" && "isRaw" in Keyboard && Keyboard.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HoldPressInterval", id: typeof HoldPressInterval === "object" && "id" in HoldPressInterval ? HoldPressInterval === null || HoldPressInterval === void 0 ? void 0 : HoldPressInterval.id : undefined, value: typeof HoldPressInterval === "object" && "value" in HoldPressInterval ? HoldPressInterval === null || HoldPressInterval === void 0 ? void 0 : HoldPressInterval.value : HoldPressInterval, isRaw: typeof HoldPressInterval === "object" && "isRaw" in HoldPressInterval && HoldPressInterval.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AlwaysHold", id: typeof AlwaysHold === "object" && "id" in AlwaysHold ? AlwaysHold === null || AlwaysHold === void 0 ? void 0 : AlwaysHold.id : undefined, value: typeof AlwaysHold === "object" && "value" in AlwaysHold ? AlwaysHold === null || AlwaysHold === void 0 ? void 0 : AlwaysHold.value : AlwaysHold, isRaw: typeof AlwaysHold === "object" && "isRaw" in AlwaysHold && AlwaysHold.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Double]", name: "_lastPress", id: typeof _lastPress === "object" && "id" in _lastPress ? _lastPress === null || _lastPress === void 0 ? void 0 : _lastPress.id : undefined, value: typeof _lastPress === "object" && "value" in _lastPress ? _lastPress === null || _lastPress === void 0 ? void 0 : _lastPress.value : _lastPress, isRaw: typeof _lastPress === "object" && "isRaw" in _lastPress && _lastPress.isRaw ? true : undefined })] })));
}
exports.VirtualShift = VirtualShift;
;