mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 19:44:15 -04:00
* 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
30 lines
883 B
Go
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
|
|
)
|