Skip to content

Commit

Permalink
emit touch events for non-trackpad buttons in vive-controls, for unif…
Browse files Browse the repository at this point in the history
…ormity with other controller types
  • Loading branch information
machenmusik committed Jun 16, 2017
1 parent 3fb32ed commit 6ccf523
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/vive-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ module.exports.Component = registerComponent('vive-controls', {
var i;
var isTouch = evtName.indexOf('touch') !== -1;

// Only trackpad has touch. Ignore for the rest, even if Gamepad API says touched.
if (isTouch && buttonName !== 'trackpad') { return; }

// Emit events.
if (Array.isArray(buttonName)) {
for (i = 0; i < buttonName.length; i++) {
Expand Down

0 comments on commit 6ccf523

Please sign in to comment.