mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02: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))
|
uiDriver().SetCursorMode(driver.CursorMode(mode))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CursorShape returns the current cursor shape.
|
||||||
|
//
|
||||||
|
// CursorShape returns CursorShapeDefault on mobiles.
|
||||||
|
//
|
||||||
|
// CursorShape is concurrent-safe.
|
||||||
func CursorShape() CursorShapeType {
|
func CursorShape() CursorShapeType {
|
||||||
return CursorShapeType(uiDriver().CursorShape())
|
return CursorShapeType(uiDriver().CursorShape())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetCursorShape sets the cursor shape.
|
||||||
|
//
|
||||||
|
// SetCursorShape is concurrent-safe.
|
||||||
func SetCursorShape(shape CursorShapeType) {
|
func SetCursorShape(shape CursorShapeType) {
|
||||||
uiDriver().SetCursorShape(driver.CursorShape(shape))
|
uiDriver().SetCursorShape(driver.CursorShape(shape))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user