Skip to content

Commit 428d3a2

Browse files
committed
Devioce motion
1 parent 4a67195 commit 428d3a2

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@
7676
]
7777
}
7878
},
79-
"DeviceMotionEventAcceleration": {
80-
"noInterfaceObject": true
81-
},
82-
"DeviceMotionEventRotationRate": {
83-
"noInterfaceObject": true
84-
},
8579
"HTMLImageElement": {
8680
"name": "HTMLImageElement",
8781
"properties": {
@@ -132,18 +126,6 @@
132126
],
133127
"events": {
134128
"event": [
135-
{
136-
"name": "devicemotion",
137-
"type": "DeviceMotionEvent"
138-
},
139-
{
140-
"name": "deviceorientation",
141-
"type": "DeviceOrientationEvent"
142-
},
143-
{
144-
"name": "deviceorientationabsolute",
145-
"type": "DeviceOrientationEvent"
146-
},
147129
{
148130
"name": "gamepadconnected",
149131
"type": "GamepadEvent"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
interface DeviceMotionEventAcceleration noInterfaceObject=#true
2+
interface DeviceMotionEventRotationRate noInterfaceObject=#true
3+
4+
interface Window {
5+
event devicemotion type=DeviceMotionEvent
6+
event deviceorientation type=DeviceOrientationEvent
7+
event deviceorientationabsolute type=DeviceOrientationEvent
8+
}

0 commit comments

Comments
 (0)