From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/window/vrdisplayconnect_event/index.html | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 files/fr/web/api/window/vrdisplayconnect_event/index.html (limited to 'files/fr/web/api/window/vrdisplayconnect_event') diff --git a/files/fr/web/api/window/vrdisplayconnect_event/index.html b/files/fr/web/api/window/vrdisplayconnect_event/index.html new file mode 100644 index 0000000000..dab575facf --- /dev/null +++ b/files/fr/web/api/window/vrdisplayconnect_event/index.html @@ -0,0 +1,83 @@ +--- +title: 'Window: vrdisplayconnect event' +slug: Web/API/Window/vrdisplayconnect_event +tags: + - Evènement + - Reference + - WebVR + - onvrdisplayconnect + - vrdisplayconnect +translation_of: Web/API/Window/vrdisplayconnect_event +--- +
{{APIRef("Window")}}
+ +
+

L'événement vrdisplayconnect de l'API WebVR est déclenché lorsqu'un écran VR compatible est connecté à l'ordinateur.

+
+ + + + + + + + + + + + + + + + + + + + +
BullesNon
AnnulableNon
Interface{{domxref("VRDisplayEvent")}}
Propriété de gestionnaire d'événementsonvrdisplayconnect
+ +

Exemples

+ +

Vous pouvez utiliser l'événement vrdisplayconnect dans une méthode addEventListener :

+ +
window.addEventListener('vrdisplayconnect', function() {
+  info.textContent = 'Affichage connecté.';
+  reportDisplays();
+});
+ +

Ou utilisez la propriété du gestionnaire d'événements onvrdisplayconnect :

+ +
window.onvrdisplayconnect = function() {
+  info.textContent = 'Affichage connecté.';
+  reportDisplays();
+};
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpécificationStatutCommentair
{{SpecName('WebVR 1.1', '#dom-window-onvrdisplayconnect', 'vrdisplayconnect')}}{{Spec2('WebVR 1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.Window.vrdisplayconnect_event")}}

+ +

Voir également

+ + -- cgit v1.2.3-54-g00ecf