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 0c0981c391
commit 00bdf71ec3

View File

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