2023-11-23 23:12:41 +03:00
|
|
|
package gg
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
|
|
)
|
|
|
|
|
2023-12-24 15:05:34 +03:00
|
|
|
type MouseButtonMap map[MouseButton] struct{}
|
2023-11-23 23:12:41 +03:00
|
|
|
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-11-23 23:12:41 +03:00
|
|
|
|
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
|
|
|
|
)
|
2023-11-23 23:12:41 +03:00
|
|
|
|