Hi 8thWall team and community,
I’m currently working with the FPS Controller template provided in 8thWall. Everything works fine except for mouse input. Here’s the issue:
-
When I click on the canvas and the pointer is “locked” (focus mode), the cursor disappears as expected.
-
However, mouse movement and clicks no longer work. I can’t look around or shoot as intended.
-
The keyboard input (
WASD
) for movement works fine.
Expected Behavior:
When clicking into the canvas, I should be able to control the camera with mouse movement and shoot with the left mouse button.
What I’ve tried:
-
Checked if
pointerlock
is enabled correctly. -
Ensured event listeners are set for
mousemove
andmousedown
. -
No console errors are thrown during runtime.
-
Tried in Chrome and Firefox (same issue).