aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/vrdisplayevent/index.html
blob: 8b8c2bee90364a0c845da4329fd539851338461f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: VRDisplayEvent
slug: Web/API/VRDisplayEvent
tags:
  - Виртуальная реальность
translation_of: Web/API/VRDisplayEvent
---
<div>{{APIRef("WebVR API")}}{{SeeCompatTable}}</div>

<p>Интерфейс VRDisplayEvent API WebVR представляет объект  событий, связанных с WebVR (Подробнее - см. Список расширений окна WebVR)</p>

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("VRDisplayEvent.VRDisplayEvent()")}}</dt>
 <dd>Создает экземпляр объекта VRDisplayEvent.</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p><em><code>VRDisplayEvent</code> также наследует свойства от своего родительского объекта, {{domxref("Event")}}.</em></p>

<dl>
 <dt>{{domxref("VRDisplayEvent.display")}} {{readonlyInline}}</dt>
 <dd> {{domxref("VRDisplay")}} связанный с этим событием.</dd>
 <dt>{{domxref("VRDisplayEvent.reason")}} {{readonlyInline}}</dt>
 <dd>Определяемая человеческим фактором причина, по которой произошло событие.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<pre class="brush: js">window.addEventListener('vrdisplaypresentchange', function(e) {
  console.log('Display ' + e.display.displayId + ' presentation has changed. Reason given: ' + e.reason + '.');
})
</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('WebVR 1.1', '#interface-vrdisplayevent', 'VRDisplayEvent')}}</td>
   <td>{{Spec2('WebVR 1.1')}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("api.VRDisplayEvent")}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a></li>
 <li><a href="http://mozvr.com/">MozVr.com</a> — демонстрации, загружаемые материалы и другие ресурсы команды the Mozilla VR team.</li>
</ul>