Skip to content

Commit

Permalink
Merge pull request #57 from pconerly/is-mouse-double-clicked
Browse files Browse the repository at this point in the history
Add IsMouseDoubleClicked
  • Loading branch information
swistakm committed Apr 15, 2018
2 parents e45c664 + 6ed8f5e commit 849a061
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions imgui/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4654,6 +4654,21 @@ def is_mouse_hovering_rect(
)


def is_mouse_double_clicked(int button):
"""Returns if mouse is double-clicked. A double-click returns false in IsMouseClicked().
Args:
button (int): mouse button index.
Returns:
bool: if mouse is double clicked.
.. wraps::
bool IsMouseDoubleClicked(int button);
"""
return cimgui.IsMouseDoubleClicked(button)


def is_mouse_dragging(int button = 0, float lock_threshold = -1.0):
"""Returns if mouse is dragging.
Expand Down

0 comments on commit 849a061

Please sign in to comment.