2022-10-07 16:45:09 -06:00
|
|
|
// https://w3c.github.io/uievents/#mouseevent
|
2023-04-06 16:12:33 +02:00
|
|
|
[Exposed=Window, UseNewAKString]
|
2021-10-01 19:31:25 +03:00
|
|
|
interface MouseEvent : UIEvent {
|
2020-06-21 16:10:48 +02:00
|
|
|
|
|
|
|
|
readonly attribute double offsetX;
|
|
|
|
|
readonly attribute double offsetY;
|
2021-04-15 20:50:02 +03:00
|
|
|
readonly attribute double clientX;
|
|
|
|
|
readonly attribute double clientY;
|
2022-11-05 14:40:31 +00:00
|
|
|
readonly attribute double screenX;
|
|
|
|
|
readonly attribute double screenY;
|
2022-02-07 13:23:33 +01:00
|
|
|
readonly attribute double x;
|
|
|
|
|
readonly attribute double y;
|
2022-12-31 16:40:36 +02:00
|
|
|
readonly attribute double pageX;
|
|
|
|
|
readonly attribute double pageY;
|
2020-06-21 16:10:48 +02:00
|
|
|
|
2023-08-24 17:47:13 +02:00
|
|
|
// https://w3c.github.io/pointerlock/#extensions-to-the-mouseevent-interface
|
|
|
|
|
readonly attribute double movementX;
|
|
|
|
|
readonly attribute double movementY;
|
|
|
|
|
|
2022-04-09 12:44:42 -03:00
|
|
|
readonly attribute short button;
|
2022-10-20 20:56:38 +03:00
|
|
|
readonly attribute unsigned short buttons;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-04-09 12:44:42 -03:00
|
|
|
|
|
|
|
|
dictionary MouseEventInit : EventModifierInit {
|
|
|
|
|
|
|
|
|
|
// FIXME: offsetX and offsetY shouldn't be here.
|
|
|
|
|
double offsetX = 0;
|
|
|
|
|
double offsetY = 0;
|
|
|
|
|
double clientX = 0;
|
|
|
|
|
double clientY = 0;
|
|
|
|
|
|
2023-08-24 17:47:13 +02:00
|
|
|
// https://w3c.github.io/pointerlock/#extensions-to-the-mouseeventinit-dictionary
|
|
|
|
|
double movementX = 0;
|
|
|
|
|
double movementY = 0;
|
|
|
|
|
|
2022-04-09 12:44:42 -03:00
|
|
|
short button = 0;
|
|
|
|
|
|
2022-11-05 14:40:31 +00:00
|
|
|
};
|