feat:(game) added mobile controls

This commit is contained in:
Alex committed 2024-02-13 17:40:00 +01:00
1 parent 5cc900ab35
commit 6ed6c0ff27
9 files changed
+717 -26

No files matched your search

+3
View File
@@ -9,6 +9,7 @@ import { Ground } from "./Ground";
import { PlayerController } from "./PlayerController";
import { PlayerControllerGamepad } from "./PlayerControllerGamepad";
import { PlayerControllerKeyboard } from "./PlayerControllerKeyboard";
import { PlayerControllerTouch } from "./PlayerControllerTouch";
import { Paris } from "./models/tracks/Tour_paris_promenade";
import {
EffectComposer,
@@ -109,6 +110,8 @@ export const Experience = () => {
? PlayerControllerKeyboard
: controls === "gamepad"
? PlayerControllerGamepad
: controls === "touch"
? PlayerControllerTouch
: PlayerController;
return (