public void Update() { UpdateDisplaySelection(); UpdateVertexSelection(); MapVertexIndex(); Vector3 v = new Vector3(JoyconInput.GetAxis("Horizontal R"), JoyconInput.GetAxis("Vertical R"), 0f); this.configurationManager.ConfigurationMeshes[this.selectedDisplay].ConfigurationVertices[mappedVertex].Move(v); }
private void UpdateVertexSelection() { if (JoyconInput.GetAxis("Horizontal L") < 0) { this.selectedVertex &= ~(1 << 0); } else if (JoyconInput.GetAxis("Horizontal L") > 0) { this.selectedVertex |= 1 << 0; } if (JoyconInput.GetAxis("Vertical L") > 0) { this.selectedVertex &= ~(1 << 1); } else if (JoyconInput.GetAxis("Vertical L") < 0) { this.selectedVertex |= 1 << 1; } }