gg/mouse.go

22 lines
615 B
Go
Raw Normal View History

package gg
import (
"github.com/hajimehoshi/ebiten/v2"
)
2023-12-24 15:05:34 +03:00
type MouseButtonMap map[MouseButton] struct{}
type MouseButton = ebiten.MouseButton
2023-12-24 15:05:34 +03:00
const (
MouseButtonLeft MouseButton = ebiten.MouseButton0
MouseButtonMiddle MouseButton = ebiten.MouseButton1
MouseButtonRight MouseButton = ebiten.MouseButton2
2023-12-24 15:05:34 +03:00
MouseButton0 MouseButton = ebiten.MouseButton0
MouseButton1 MouseButton = ebiten.MouseButton1
MouseButton2 MouseButton = ebiten.MouseButton2
MouseButton3 MouseButton = ebiten.MouseButton3
MouseButton4 MouseButton = ebiten.MouseButton4
MouseButtonMax MouseButton = ebiten.MouseButton4
)