Skip to content

Commit bf2c59a

Browse files
Remove bad code in meta-touch-controls for thumbstick rotation that gives error with Rift controllers (#5775)
1 parent bf97005 commit bf2c59a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/components/meta-touch-controls.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,6 @@ var componentConfig = {
423423
this.updateThumbstickTouchV3orPROorPlus(evt);
424424
return;
425425
}
426-
for (var axis in evt.detail) {
427-
this.buttonObjects.thumbstick.rotation[this.axisMap[axis]] =
428-
this.buttonRanges.thumbstick.originalRotation[this.axisMap[axis]] -
429-
(Math.PI / 8) *
430-
evt.detail[axis] *
431-
(axis === 'y' || this.data.hand === 'right' ? -1 : 1);
432-
}
433426
},
434427
axisMap: {
435428
y: 'x',

0 commit comments

Comments
 (0)