ebiten: Add an explicit type to CursorModeType consts for pkg.go.dev

This commit is contained in:
Hajime Hoshi 2020-10-18 03:55:58 +09:00
parent 2b7362a66b
commit a781391752

View File

@ -16,13 +16,12 @@ package ebiten
import "github.com/hajimehoshi/ebiten/v2/internal/driver"
// A CursorModeType represents
// CursorModeType represents
// a render and coordinate mode of a mouse cursor.
type CursorModeType int
// Cursor Modes
const (
CursorModeVisible = CursorModeType(driver.CursorModeVisible)
CursorModeHidden = CursorModeType(driver.CursorModeHidden)
CursorModeCaptured = CursorModeType(driver.CursorModeCaptured)
CursorModeVisible CursorModeType = CursorModeType(driver.CursorModeVisible)
CursorModeHidden CursorModeType = CursorModeType(driver.CursorModeHidden)
CursorModeCaptured CursorModeType = CursorModeType(driver.CursorModeCaptured)
)