A downloadable asset pack for Windows, Mac OS X, Linux, and Android

Download NowName your own price

A gml extension that provides a new function, mouse_check_doubleclick().

It's simple to use:

syntax: mouse_check_doubleclick(mouse_button, delay_microseconds)

returns: true if a double-click is detected, false if no double click is detected.

It's best to use it in the Mouse or Step events.

Example code:

///Create Event: 
// initializes the timer variable for double-click timing
mouse_doubleclick_init(); 


///Mouse Event: 
//checks for a double-click with the left mouse button and a quarter-second delay 
if mouse_check_doubleclick(mb_left, 250000) 
{ 
  //do double-click action 
} 

Very easy!

More information

Published115 days ago
StatusReleased
CategoryAssets
Authorcsanyk
Tagscsanyk, double-click, gamemaker-studio, gml, mouse

Download

Download NowName your own price

Click download now to get access to the following files:

Mouse_Double_Click.gmez 2 kB

Leave a comment

Log in with your itch.io account to leave a comment.