mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
HTML5: Address removal of 'timestamp' in Emscripten 1.39.5
It was removed as noted in the changelog: https://github.com/emscripten-core/emscripten/blob/1.39.5/ChangeLog.md#v1395-12202019 > Removed `timestamp` field from mouse, wheel, devicemotion and > deviceorientation events. The presence of a `timestamp` on these > events was slightly arbitrary, and populating this field caused > a small profileable overhead that all users might not care about. > It is easy to get a timestamp of an event by calling > `emscripten_get_now()` or `emscripten_performance_now()` inside > the event handler function of any event. Fixes #34648.
This commit is contained in:
parent
0aefec2454
commit
435f86cf87
2 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ class OS_JavaScript : public OS_Unix {
|
|||
Point2 touches[32];
|
||||
|
||||
Point2i last_click_pos;
|
||||
uint64_t last_click_ms;
|
||||
double last_click_ms;
|
||||
int last_click_button_index;
|
||||
|
||||
MainLoop *main_loop;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue