1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-17 18:06:03 -05:00
OpenDiablo2/d2common/d2enum/input_button.go
dk 60e6fcb7ac
moving enumerations out of d2interface (#552)
* moved filter constants back to d2enum

* moving key and mouse button enums into d2enum

* moving render type enum into d2enum

* moving input even priority enums into d2enum

* moving terminal enums into d2enum
2020-07-06 21:26:08 -04:00

30 lines
883 B
Go

package d2enum
// 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
// MouseButtonMin is the lowest MouseButton
MouseButtonMin = MouseButtonLeft
// MouseButtonMax is the highest MouseButton
MouseButtonMax = MouseButtonRight
)
// MouseButtonMod represents a "modified" mouse button action. This could mean, for example, ctrl-mouse_left
type MouseButtonMod int
const (
// MouseButtonModLeft is a modified left mouse button
MouseButtonModLeft MouseButtonMod = 1 << iota
// MouseButtonModMiddle is a modified middle mouse button
MouseButtonModMiddle
// MouseButtonModRight is a modified right mouse button
MouseButtonModRight
)