mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename doubleclick to double_click
This commit is contained in:
parent
3fea170772
commit
0de9a7d803
23 changed files with 57 additions and 57 deletions
|
|
@ -215,14 +215,14 @@ EM_BOOL DisplayServerJavaScript::mouse_button_callback(int p_event_type, const E
|
|||
display->last_click_ms = 0;
|
||||
display->last_click_pos = Point2(-100, -100);
|
||||
display->last_click_button_index = -1;
|
||||
ev->set_doubleclick(true);
|
||||
ev->set_double_click(true);
|
||||
}
|
||||
|
||||
} else {
|
||||
display->last_click_button_index = ev->get_button_index();
|
||||
}
|
||||
|
||||
if (!ev->is_doubleclick()) {
|
||||
if (!ev->is_double_click()) {
|
||||
display->last_click_ms += diff;
|
||||
display->last_click_pos = ev->get_position();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue