diff options
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -90,7 +90,7 @@ type MouseEvent struct { // If the event was generated by a mouse button being released, Up contains the ID of that button. // Otherwise, Up contains 0. - // If both Down and Up are 0, the event represents mouse movement (with optional held buttons; see below). + // If both Down and Up are 0, the event represents mouse movement (with optional held buttons for dragging; see below). // Down and Up shall not both be nonzero. Up uint @@ -106,6 +106,11 @@ type MouseEvent struct { // Held will not include Down and Up. // Held will be sorted. // Only buttons 1, 2, and 3 are guaranteed to be detected by Held properly; whether or not any others are is implementation-defined. + // + // If Held is non-empty but Up and Down are both zero, the mouse is being dragged, with all the buttons in Held being held. + // Whether or not a drag into an Area generates MouseEvents is implementation-defined. + // Whether or not a drag over an Area when the program is inactive generates MouseEvents is also implementation-defined. + // Moving the mouse over an Area when the program is inactive and no buttons are held will, however, generate MouseEvents. Held []uint } |
