Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mouse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ def on_double_click(callback, args=()):
"""
return on_button(callback, args, [LEFT], [DOUBLE])

def on_right_double_click(callback, args=()):
"""
Invokes `callback` with `args` when the left button is double clicked.
"""
return on_button(callback, args, [RIGHT], [DOUBLE])

def on_right_click(callback, args=()):
""" Invokes `callback` with `args` when the right button is clicked. """
return on_button(callback, args, [RIGHT], [UP])
Expand Down