Detect Double-Click
Moderators: Víctor Paredes, Belgarath, slowtiger
Detect Double-Click
Is there a way to detect double-clicking? I only see options for detecting mouse down, mouse up and key down, key up.
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Detect Double-Click
You would have to have one click set a variable to os.time. If a click finds os.time minus this variable to be short enough, then both clicks happened close enough to be considered a double-click.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- hayasidist
- Posts: 3523
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England