PageSourceSearch

https://www.robotmesh.com/studio/content/jsx/robotmesh/tsjs/interfaces/vexcortex_joywiz.js

js robotmesh.com collected 2026-09-24 12:53:09 UTC 2,270 bytes, 1 lines download raw bytes

1import{joystick_wizard as jw}from"../joystick_wizard.js";import{msg}from"../msg/messages.js";import{util}from"../util_general.js";import{vexcortex_state}from"./vexcortex_state.js";export var vexcortex_joywiz;!function(e){class t extends jw.IfcJoywiz{constructor(e){super(e),this._state=e}hideUnusedWidgets(){const e=jQuery(".ic_widget");for(let t=0;t<e.length;t++){const i=e.eq(t);i.find(".td_num .num").text()===msg.HWID_LCD&&i.hide()}}get state(){return this._state}createActions(e,t){var i=jw.getActions(e);switch(e.type){case vexcortex_state.VexDeviceType.digital_input:case vexcortex_state.VexDeviceType.digital_bumper:case vexcortex_state.VexDeviceType.digital_limit_switch:i.setAvailable([new jw.MotorLimitAction(msg.LIMIT_FORWARD,e,!1),new jw.MotorLimitAction(msg.LIMIT_REVERSE,e,!0)]);break;case vexcortex_state.VexDeviceType.digital_ultrasonic_sensor:i.setAvailable([new jw.MotorLimitAction(msg.LIMIT_FORWARD,e,!1,10),new jw.MotorLimitAction(msg.LIMIT_REVERSE,e,!0,10)]);break;case vexcortex_state.VexDeviceType.digital_ultrasonic_sensor_mm:i.setAvailable([new jw.MotorLimitAction(msg.LIMIT_FORWARD,e,!1,100),new jw.MotorLimitAction(msg.LIMIT_REVERSE,e,!0,100)]);break;case vexcortex_state.VexDeviceType.digital_ultrasonic_sensor_inch:i.setAvailable([new jw.MotorLimitAction(msg.LIMIT_FORWARD,e,!1,4),new jw.MotorLimitAction(msg.LIMIT_REVERSE,e,!0,4)]);break;case vexcortex_state.VexDeviceType.joystick_axis:var s=[];if(s.push(new jw.LinearControlAction(msg.LINEAR_CONTROL,e)),e.hwId==vexcortex_state.ID_Axis1_x){var o=util.find(t,e=>e.hwId==vexcortex_state.ID_Axis2_y);s.push(new jw.ArcadeDriveAction(msg.ARCADE_DRIVE,o,e))}else if(e.hwId==vexcortex_state.ID_Axis3_y){var r=util.find(t,e=>e.hwId==vexcortex_state.ID_Axis4_x);s.push(new jw.ArcadeDriveAction(msg.ARCADE_DRIVE,e,r))}i.setAvailable(s);break;case vexcortex_state.VexDeviceType.joystick_button:0!=e.hwId.indexOf(vexcortex_state.ID_PartnerPrefix)?i.setAvailable([new jw.SetWhilePressedAction(msg.FORWARD,e,100),new jw.SetWhilePressedAction(msg.REVERSE,e,-100,!0),new jw.ToggleWhenPressedAction(msg.FORWARD_TOGGLE,e,100),new jw.ToggleWhenPressedAction(msg.REVERSE_TOGGLE,e,-100,!0)]):i.setAvailable([]);break;default:i.setAvailable([])}}}e.VexCortexJoywiz=t}(vexcortex_joywiz||(vexcortex_joywiz={}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.