That's an excellent idea. Yes, I think that would be the best way.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteNot really keen on how it repeats at a high resolution :/
Global script // top of script int doubleclick=-1; // stores mouse double-click status // end of script export doubleclick; // export variable for import in script header Script header import int doubleclick; // make double-click status available to room scripts as well on_mouse_click // top of function preferrably if (IsTimerExpired(TIMERNUMBERHERE)) // user failed to click twice within the specified timeframe doubleclick = 0; // register single click else { // user clicked twice within the specified timeframe if (doubleclick == 0) // only if preceded by a single click (remove this if you want) doubleclick = 1; // register double click } SetTimer(TIMERNUMBERHERE, GetGameSpeed()/4); // set timer to wait 250ms for second click
on_mouse_click // script from above ... if (button == LEFT) { if (doubleclick) { // do double-click stuff here } else { // do single-click stuff, for example: ProcessClick(mouse.x,mouse.y,GetCursorMode()); } ...
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.840 seconds with 15 queries.