1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2core/d2ui/d2ui.go

31 lines
670 B
Go
Raw Normal View History

package d2ui
import (
2020-06-28 19:31:10 -04:00
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2interface"
)
// CursorButton represents a mouse button
type CursorButton uint8
const (
// CursorButtonLeft represents the left mouse button
CursorButtonLeft CursorButton = 1
// CursorButtonRight represents the right mouse button
CursorButtonRight CursorButton = 2
)
// NewUIManager creates a UIManager instance with the given input and audio provider
func NewUIManager(
renderer d2interface.Renderer,
input d2interface.InputManager,
audio d2interface.AudioProvider,
) *UIManager {
ui := &UIManager{
renderer: renderer,
inputManager: input,
audio: audio,
}
return ui
}