0.0.5 • Published 8 months ago

three-gamepad v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

three-gamepad

three-gamepad is a simple library that allows you to use a gamepad to control a camera in a three.js scene. It also features a drop-in replacement for the camera-controls class that allows you to use a gamepad to control the camera.

Installation

Install it with npm:

npm install three-gamepad

or yarn:

yarn add three-gamepad

Usage

import * as THREE from "three";
import { GamepadCameraControls } from "three-gamepad";
const cameraControls = new GamepadCameraControls(camera, renderer.domElement);

GamepadCameraControls.install({ THREE });

Demo

A live demo can be found at: https://andrewisen-tikab.github.io/three-gamepad/examples/.

Docs

Auto-generated documentation can be found at: https://andrewisen-tikab.github.io/three-gamepad/docs/

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago