Skip to content

Double-click and tap

Check for a double-click or a tap.

Authors and contributors to this experimental extension: Silver-Streak, D8H.


Check for a double-click with a mouse, or a tap and double-click on a touchscreen.

Please note: Touch devices do not have alternatives for middle/right clicks. Taps on a touch device will get counted for any use of these conditions, so you should either design your controls accordingly, or build out separate events if the device has a touch screen.

Tip

Learn how to install new extensions by following a step-by-step guide.

Conditions

Double-clicked (or double-tapped)
Check if the specified mouse button is clicked twice in a short amount of time.

See parameters
  • Parameter 1 (mouseButton): Mouse button to track As touch devices do not have middle/right tap equivalents, you will need to account for this within your events if you're not using the left mouse button and building for touch devices.

Technical note: parameters 0, 2 are internal parameters handled by GDevelop.

Clicked (or tapped)
Check if the specified mouse button is clicked.

See parameters
  • Parameter 1 (mouseButton): Mouse button to track As touch devices do not have middle/right tap equivalents, you will need to account for this within your events if you're not using the left mouse button and building for touch devices.

Technical note: parameters 0, 2 are internal parameters handled by GDevelop.


This page is an auto-generated reference page about the Double-click and tap extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.