updated ebiten version from 2.7.9 to 2.9.9
This commit is contained in:
+23
-5
@@ -19,17 +19,17 @@ import (
|
||||
)
|
||||
|
||||
// CursorModeType represents a render and coordinate mode of a mouse cursor.
|
||||
type CursorModeType = ui.CursorMode
|
||||
type CursorModeType int
|
||||
|
||||
// CursorModeTypes
|
||||
const (
|
||||
CursorModeVisible CursorModeType = ui.CursorModeVisible
|
||||
CursorModeHidden CursorModeType = ui.CursorModeHidden
|
||||
CursorModeCaptured CursorModeType = ui.CursorModeCaptured
|
||||
CursorModeVisible CursorModeType = CursorModeType(ui.CursorModeVisible)
|
||||
CursorModeHidden CursorModeType = CursorModeType(ui.CursorModeHidden)
|
||||
CursorModeCaptured CursorModeType = CursorModeType(ui.CursorModeCaptured)
|
||||
)
|
||||
|
||||
// CursorShapeType represents a shape of a mouse cursor.
|
||||
type CursorShapeType = ui.CursorShape
|
||||
type CursorShapeType int
|
||||
|
||||
// CursorShapeTypes
|
||||
const (
|
||||
@@ -44,3 +44,21 @@ const (
|
||||
CursorShapeMove CursorShapeType = CursorShapeType(ui.CursorShapeMove)
|
||||
CursorShapeNotAllowed CursorShapeType = CursorShapeType(ui.CursorShapeNotAllowed)
|
||||
)
|
||||
|
||||
// CursorShape returns the current cursor shape.
|
||||
//
|
||||
// CursorShape returns CursorShapeDefault on mobiles.
|
||||
//
|
||||
// CursorShape is concurrent-safe.
|
||||
func CursorShape() CursorShapeType {
|
||||
return CursorShapeType(ui.Get().CursorShape())
|
||||
}
|
||||
|
||||
// SetCursorShape sets the cursor shape.
|
||||
//
|
||||
// If the platform doesn't implement the given shape, the default cursor shape is used.
|
||||
//
|
||||
// SetCursorShape is concurrent-safe.
|
||||
func SetCursorShape(shape CursorShapeType) {
|
||||
ui.Get().SetCursorShape(ui.CursorShape(shape))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user