Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an event for double clicks #686

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 2 comments
Closed

Add an event for double clicks #686

SDLBugzilla opened this issue Feb 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2012-10-21 10:28:07 +0000, Sik wrote:

I suggest adding an event for when the user performs a double click. Should be self-explanatory. Whenever possible, the double click event should respect the system settings for the maximum delay and distances allowed (e.g. by using the OS's own events), while elsewhere it may have to be faked.

For when it's faked, do you think a maximum delay of 500ms and a maximum distance of 1% of the screen resolution (take the shortest dimension) are good enough?

PS: should this be "enhancement" or "API change"?

On 2014-01-30 22:59:17 +0000, Philipp Wiesemann wrote:

A "clicks" field was added for mouse button events here:
https://hg.libsdl.org/SDL/rev/658b461d81be

I guess this will be part of SDL 2.0.2 (although not listed in WhatsNew.txt yet).

On 2014-03-01 18:36:35 +0000, Sam Lantinga wrote:

Yup, I'll add it to the WhatsNew.txt file today.

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 10, 2021
@dbechrd
Copy link

dbechrd commented Jun 1, 2023

Is this actually implemented? It was closed, but with no PR. How do I use it?

Edit: I think I found it in SDL_MouseButtonEvent.clicks.

@icculus
Copy link
Collaborator

icculus commented Jun 1, 2023

Yeah, this predates the project being on GitHub. This issue was migrated from a closed bug report on our old Bugzilla, and that hg.libsdl.org link above will take you to the equivalent commit on GitHub!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants