Skip to content

An unhandled exception may occur when expected buttons mismatch the actually reported ones#23

Open
Artyom17 wants to merge 1 commit intostewdio:masterfrom
Artyom17:master
Open

An unhandled exception may occur when expected buttons mismatch the actually reported ones#23
Artyom17 wants to merge 1 commit intostewdio:masterfrom
Artyom17:master

Conversation

@Artyom17
Copy link

Just recently hit that issue: different browsers may report different number of buttons (and theoretically - axes) for the same controllers (even though the order of those, obviously, must be correct). If the number of expected buttons is greater than the number of buttons actually reported then VRController throws an exception (in line 187).
For safety reasons I am adding if check for buttons and axes.

…xpected buttons/axes is greater than the actual buttons / axes reported by the browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant