mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
ebiten: Add comments about SetCursorShape / CursorShape
This commit is contained in:
parent
1c3eaba6e3
commit
da2db2f54e
8
run.go
8
run.go
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user