2020-07-06 21:26:08 -04:00
|
|
|
package d2enum
|
2020-07-01 14:03:40 -04:00
|
|
|
|
|
|
|
// MouseButton represents a traditional 3-button mouse
|
|
|
|
type MouseButton int
|
|
|
|
|
|
|
|
const (
|
|
|
|
// MouseButtonLeft is the left mouse button
|
|
|
|
MouseButtonLeft MouseButton = iota
|
|
|
|
// MouseButtonMiddle is the middle mouse button
|
|
|
|
MouseButtonMiddle
|
|
|
|
// MouseButtonRight is the right mouse button
|
|
|
|
MouseButtonRight
|
2020-07-03 15:09:16 -04:00
|
|
|
// MouseButtonMin is the lowest MouseButton
|
|
|
|
MouseButtonMin = MouseButtonLeft
|
|
|
|
// MouseButtonMax is the highest MouseButton
|
|
|
|
MouseButtonMax = MouseButtonRight
|
2020-07-01 14:03:40 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// MouseButtonMod represents a "modified" mouse button action. This could mean, for example, ctrl-mouse_left
|
|
|
|
type MouseButtonMod int
|
|
|
|
|
|
|
|
const (
|
2020-07-03 15:09:16 -04:00
|
|
|
// MouseButtonModLeft is a modified left mouse button
|
2020-07-01 14:03:40 -04:00
|
|
|
MouseButtonModLeft MouseButtonMod = 1 << iota
|
|
|
|
// MouseButtonModMiddle is a modified middle mouse button
|
|
|
|
MouseButtonModMiddle
|
|
|
|
// MouseButtonModRight is a modified right mouse button
|
|
|
|
MouseButtonModRight
|
|
|
|
)
|