1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 17:27:23 -04:00
OpenDiablo2/d2common/d2enum/input_button.go

30 lines
883 B
Go
Raw Normal View History

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
)