Skip to content

Add "clicks" to mouse eventย #3706

@Starbuck5

Description

@Starbuck5

Description

In SDL2 and SDL3, mouse button events come with a "clicks" member "1 for single-click, 2 for double-click, etc."

https://wiki.libsdl.org/SDL2/SDL_MouseButtonEvent
https://wiki.libsdl.org/SDL3/SDL_MouseButtonEvent

This seems useful, we should expose it in pygame-ce.

Shoutout to pykraken for having this implemented in their code :D

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions