Skip to content

Commit

Permalink
ebiten: Add an explicit type to CursorModeType consts for pkg.go.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 17, 2020
1 parent ac6930f commit 3e0cf29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cursormode.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ package ebiten

import "github.com/hajimehoshi/ebiten/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)
)

0 comments on commit 3e0cf29

Please sign in to comment.