Skip to content

Commit b37cff8

Browse files
committed
Added gamepad support
1 parent 99e179a commit b37cff8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ReleaseNotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* `0.9.26`
2+
* Добавлена поддержка геймпада для управления камерой
13
* `0.9.25`
24
* ✨ Добавлена поддержка управления с контроллера HTC Vive.
35
* ✨ Профили использования 3D моделей контроллеров скачиваются в локальную папку build, экскурсия может открываться оффлайн.

src/Viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class Viewer {
144144
// Для имитации поведения, как будто хватаем за панораму и тянем. 10К выбрано эмпирически
145145
camera.angularSensibility = -10000;
146146
camera.attachControl(canvas, true);
147-
147+
camera.inputs.addGamepad();
148148
this.freeCamera = camera;
149149

150150
if ("xr" in window.navigator) {

0 commit comments

Comments
 (0)