ebiten: Add comments about SetCursorShape / CursorShape

This commit is contained in:
Hajime Hoshi 2021-07-22 19:17:14 +09:00
parent 1c3eaba6e3
commit da2db2f54e

8
run.go
View File

@ -226,10 +226,18 @@ func SetCursorMode(mode CursorModeType) {
uiDriver().SetCursorMode(driver.CursorMode(mode))
}
// CursorShape returns the current cursor shape.
//
// CursorShape returns CursorShapeDefault on mobiles.
//
// CursorShape is concurrent-safe.
func CursorShape() CursorShapeType {
return CursorShapeType(uiDriver().CursorShape())
}
// SetCursorShape sets the cursor shape.
//
// SetCursorShape is concurrent-safe.
func SetCursorShape(shape CursorShapeType) {
uiDriver().SetCursorShape(driver.CursorShape(shape))
}