A downloadable asset pack

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!

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 itch.io to leave a comment.