From 3b73d22b4ddf35ae74a8f1cbffee417c8fa1e0af Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Mon, 20 Mar 2023 20:09:17 +0900 Subject: [PATCH] feature: Add `stopListenToKeyEvents` to `OrbitControls` (#376) - See: https://threejs.org/docs/#examples/en/controls/OrbitControls.stopListenToKeyEvents - See: https://github.com/mrdoob/three.js/pull/25418 - See: https://github.com/three-types/three-ts-types/issues/357 --- types/three/examples/jsm/controls/OrbitControls.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/three/examples/jsm/controls/OrbitControls.d.ts b/types/three/examples/jsm/controls/OrbitControls.d.ts index c13a77e42..f8165672e 100644 --- a/types/three/examples/jsm/controls/OrbitControls.d.ts +++ b/types/three/examples/jsm/controls/OrbitControls.d.ts @@ -230,6 +230,11 @@ export class OrbitControls { */ listenToKeyEvents(domElement: HTMLElement | Window): void; + /** + * Removes the key event listener previously defined with {@link listenToKeyEvents}. + */ + stopListenToKeyEvents(): void; + /** * Save the current state of the controls. This can later be * recovered with .reset.