mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add vrcontrols definition
This commit is contained in:
committed by
Toshiya Nakakura
parent
304a251979
commit
17894fdec8
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// Type definitions for three.js (VRControls.js)
|
||||
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/controls/VRControls.js
|
||||
// Definitions by: Toshiya Nakakura <https://github.com/nakakura>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="./three.d.ts" />
|
||||
|
||||
declare module THREE {
|
||||
export class VRControls {
|
||||
constructor(camera: Camera, callback?: (param: string)=>void);
|
||||
|
||||
/**
|
||||
* Update VR Instance Tracking
|
||||
*/
|
||||
update(): void;
|
||||
zeroSensor(): void;
|
||||
|
||||
scale: number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user