@@ -71,7 +71,7 @@ Fields:
7171* ` pwidth ` : The width in physical pixels.
7272* ` pheight ` : The height in physical pixels.
7373* ` pixel_ratio ` : The pixel ratio between logical and physical pixels.
74- * ` time_stamp ` : A timestamp in seconds.
74+ * ` timestamp ` : A timestamp in seconds.
7575
7676
7777### close
@@ -81,7 +81,7 @@ This event is emitted when the canvas is closed (i.e. destroyed).
8181Fields:
8282
8383* ` event_type ` : 'close'
84- * ` time_stamp ` : A timestamp in seconds.
84+ * ` timestamp ` : A timestamp in seconds.
8585
8686
8787### show
@@ -93,7 +93,7 @@ shown. If this is not the case, the implementation should emit a 'hide' event.
9393Fields:
9494
9595* ` event_type ` : 'show'
96- * ` time_stamp ` : A timestamp in seconds.
96+ * ` timestamp ` : A timestamp in seconds.
9797
9898
9999### hide
@@ -103,7 +103,7 @@ This event is emitted when the canvas is hidden. It can e.g. be minimized or scr
103103Fields:
104104
105105* ` event_type ` : 'hide'
106- * ` time_stamp ` : A timestamp in seconds.
106+ * ` timestamp ` : A timestamp in seconds.
107107
108108
109109### pointer_down
@@ -120,7 +120,7 @@ Fields:
120120* ` modifiers ` : A tuple of modifier keys being pressed down.
121121* ` ntouches ` : Experimental.
122122* ` touches ` : Experimental.
123- * ` time_stamp ` : A timestamp in seconds.
123+ * ` timestamp ` : A timestamp in seconds.
124124
125125The mouse buttons are defined as follows, which is different from JavaScript (although close to the JS ` buttons ` bitmask):
126126
@@ -162,7 +162,7 @@ This event is emitted when the user moves a pointer into the boundary of the can
162162Fields:
163163
164164* ` event_type ` : 'pointer_enter'
165- * ` time_stamp ` : A timestamp in seconds.
165+ * ` timestamp ` : A timestamp in seconds.
166166
167167
168168### pointer_leave
@@ -172,7 +172,7 @@ This event is emitted when the user moves a pointer out of the boundary of the c
172172Fields:
173173
174174* ` event_type ` : 'pointer_enter'
175- * ` time_stamp ` : A timestamp in seconds.
175+ * ` timestamp ` : A timestamp in seconds.
176176
177177
178178### double_click
@@ -187,7 +187,7 @@ Fields:
187187* ` button ` : The button to which this event applies.
188188* ` buttons ` : A tuple of buttons being pressed down.
189189* ` modifiers ` : A tuple of modifier keys being pressed down. See section below for details.
190- * ` time_stamp ` : A timestamp in seconds.
190+ * ` timestamp ` : A timestamp in seconds.
191191
192192
193193### wheel
@@ -205,7 +205,7 @@ Fields:
205205* ` y ` : The mouse vertical position during the scroll.
206206* ` buttons ` : aA tuple of buttons being pressed down.
207207* ` modifiers ` * : A tuple of modifier keys being pressed down.
208- * ` time_stamp ` : A timestamp in seconds.
208+ * ` timestamp ` : A timestamp in seconds.
209209
210210Similar to the JS wheel event, the values of the deltas depend on the
211211platform and whether the mouse-wheel, trackpad or a touch-gesture is
@@ -230,7 +230,7 @@ Fields:
230230* ` event_type ` : 'key_down'
231231* ` key ` : The key being pressed as a string.
232232* ` modifiers ` : A tuple of modifier keys being pressed down.
233- * ` time_stamp ` : A timestamp in seconds.
233+ * ` timestamp ` : A timestamp in seconds.
234234
235235The key names follow the [ browser spec] ( https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent ) .
236236
@@ -247,7 +247,7 @@ This event is emitted when a key is released.
247247* ` event_type ` : 'key_up'
248248* ` key ` : The key being released as a string.
249249* ` modifiers ` : A tuple of modifier keys being pressed down.
250- * ` time_stamp ` : A timestamp in seconds.
250+ * ` timestamp ` : A timestamp in seconds.
251251
252252
253253### char
@@ -267,10 +267,11 @@ Fields:
267267## Details
268268
269269
270- ### Time stamps
270+ ### Timestamps
271271
272- The reference for the used time stamps is not defined by this spec. They could be Unix timestamps or something that starts at application start.
273- In multi-process environments you can therefore not compare the timestamps to e.g. ` time.time() ` .
272+ The timestamps are intended to compare the time * between* events. The reference
273+ for the used time stamps is not defined by this spec. They could be Unix
274+ timestamps or something like ` time.perf_counter() ` .
274275
275276
276277### Coordinate frame
0 commit comments