summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-23 23:48:17 -0400
committerPietro Gagliardi <[email protected]>2014-05-23 23:48:17 -0400
commit511f774649fa53f5bf8e3d42bf79e74193c9596a (patch)
treef5a54aac2de5d15ce987e8b4d8d44f5f34a07506 /area.go
parentf4afa2a9511dd6ab75c040f9e50f11a1918ccf25 (diff)
Finished the Area clicking stuff: formalized the behavior in documentation in area.go, pointed out that Mac OS X already behaves as expected, updated some comments, and removed the relevant TODO.
Diffstat (limited to 'area.go')
-rw-r--r--area.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/area.go b/area.go
index 9f98c29..1cbcdb4 100644
--- a/area.go
+++ b/area.go
@@ -94,9 +94,8 @@ type MouseEvent struct {
// Down and Up shall not both be nonzero.
Up uint
- // If Down is nonzero, Count indicates the number of clicks: 1 for single-click, 2 for double-click.
- // If Count == 2, AT LEAST zero events with Count == 1 will have been sent prior.
- // (This is a platform-specific issue: some platforms send none, some send one, and some send two.)
+ // If Down is nonzero, Count indicates the number of clicks: 1 for single-click, 2 for double-click, 3 for triple-click, and so on.
+ // The order of events will be Down:Count=1 -> Up -> Down:Count=2 -> Up -> Down:Count=3 -> Up -> ...
Count uint
// Modifiers is a bit mask indicating the modifier keys being held during the event.