You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/source/docs/api_reference/html5.h.rst
+28-28
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ Struct
244
244
245
245
Maximum size 32 ``char`` (i.e. ``EM_UTF8 code[32]``).
246
246
247
-
.. c:member::unsignedlong location
247
+
.. c:member::unsignedint location
248
248
249
249
Indicates the location of the key on the keyboard. One of the :c:data:`DOM_KEY_LOCATION <DOM_KEY_LOCATION_STANDARD>` values.
250
250
@@ -273,20 +273,20 @@ Struct
273
273
274
274
.. warning:: This attribute has been dropped from DOM Level 3 events.
275
275
276
-
.. c:member::unsignedlong charCode
276
+
.. c:member::unsignedint charCode
277
277
278
278
The Unicode reference number of the key; this attribute is used only by the keypress event. For keys whose ``char`` attribute contains multiple characters, this is the Unicode value of the first character in that attribute.
279
279
280
280
.. warning:: This attribute is deprecated, you should use the field ``key`` instead, if available.
281
281
282
-
.. c:member::unsignedlong keyCode
282
+
.. c:member::unsignedint keyCode
283
283
284
284
A system and implementation dependent numerical code identifying the unmodified value of the pressed key.
285
285
286
286
.. warning:: This attribute is deprecated, you should use the field ``key`` instead, if available.
287
287
288
288
289
-
.. c:member::unsignedlong which
289
+
.. c:member::unsignedint which
290
290
291
291
A system and implementation dependent numeric code identifying the unmodified value of the pressed key; this is usually the same as ``keyCode``.
292
292
@@ -364,13 +364,13 @@ Struct
364
364
365
365
Absolute wallclock time when the data was recorded (milliseconds).
366
366
367
-
.. c:member:: long screenX
368
-
long screenY
367
+
.. c:member:: int screenX
368
+
int screenY
369
369
370
370
The coordinates relative to the browser screen coordinate system.
371
371
372
-
.. c:member:: long clientX
373
-
long clientY
372
+
.. c:member:: int clientX
373
+
int clientY
374
374
375
375
The coordinates relative to the viewport associated with the event.
376
376
@@ -396,24 +396,24 @@ Struct
396
396
397
397
A bitmask that indicates which combinations of mouse buttons were being held down at the time of the event.
398
398
399
-
.. c:member:: long movementX
400
-
long movementY;
399
+
.. c:member:: int movementX
400
+
int movementY;
401
401
402
402
If pointer lock is active, these two extra fields give relative mouse movement since the last event.
403
403
404
-
.. c:member::long targetX
405
-
long targetY
404
+
.. c:member::int targetX
405
+
int targetY
406
406
407
407
These fields give the mouse coordinates mapped relative to the coordinate space of the target DOM element receiving the input events (Emscripten-specific extension; coordinates are rounded down to the nearest integer).
408
408
409
409
410
-
.. c:member::long canvasX
411
-
long canvasY
410
+
.. c:member::int canvasX
411
+
int canvasY
412
412
413
413
These fields give the mouse coordinates mapped to the Emscripten canvas client area (Emscripten-specific extension; coordinates are rounded down the nearest integer).
414
414
415
415
416
-
.. c:member::long padding
416
+
.. c:member::int padding
417
417
418
418
Internal, and can be ignored.
419
419
@@ -517,7 +517,7 @@ Struct
517
517
in scroll values of 0. The positive Y scroll direction is when scrolling the page downwards (page CSS pixel +Y direction), which corresponds to scrolling
518
518
the mouse wheel downwards (away from the screen) on Windows, Linux, and also on macOS when the 'natural scroll' option is disabled.
519
519
520
-
.. c:member:: unsigned long deltaMode
520
+
.. c:member:: unsigned int deltaMode
521
521
522
522
One of the :c:data:`DOM_DELTA_<DOM_DELTA_PIXEL>` values that indicates the units of measurement for the delta values.
523
523
@@ -1487,22 +1487,22 @@ Struct
1487
1487
1488
1488
Specifies the status of a single `touch point <http://www.w3.org/TR/touch-events/#touch-interface>`_ on the page.
1489
1489
1490
-
.. c:member::long identifier
1490
+
.. c:member::int identifier
1491
1491
1492
1492
An identification number for each touch point.
1493
1493
1494
-
.. c:member::long screenX
1495
-
long screenY
1494
+
.. c:member::int screenX
1495
+
int screenY
1496
1496
1497
1497
The touch coordinate relative to the whole screen origin, in pixels.
1498
1498
1499
-
.. c:member::long clientX
1500
-
long clientY
1499
+
.. c:member::int clientX
1500
+
int clientY
1501
1501
1502
1502
The touch coordinate relative to the viewport, in pixels.
1503
1503
1504
-
.. c:member::long pageX
1505
-
long pageY
1504
+
.. c:member::int pageX
1505
+
int pageY
1506
1506
1507
1507
The touch coordinate relative to the viewport, in pixels, and including any scroll offset.
1508
1508
@@ -1514,13 +1514,13 @@ Struct
1514
1514
1515
1515
Specifies whether this touch point is still above the original target on which it was initially pressed.
1516
1516
1517
-
.. c:member::long targetX
1518
-
long targetY
1517
+
.. c:member::int targetX
1518
+
int targetY
1519
1519
1520
1520
These fields give the touch coordinates mapped relative to the coordinate space of the target DOM element receiving the input events (Emscripten-specific extension).
1521
1521
1522
-
.. c:member:: long canvasX
1523
-
long canvasY
1522
+
.. c:member:: int canvasX
1523
+
int canvasY
1524
1524
1525
1525
The touch coordinates mapped to the Emscripten canvas client area, in pixels (Emscripten-specific extension).
1526
1526
@@ -1643,7 +1643,7 @@ Struct
1643
1643
1644
1644
Specifies whether this gamepad is connected to the browser page.
1645
1645
1646
-
.. c:member:: long index
1646
+
.. c:member:: int index
1647
1647
1648
1648
An ordinal associated with this gamepad, zero-based.
0 commit comments