mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
input: Improve CursorPosition document
This commit is contained in:
parent
e6c0c73b9e
commit
f262210410
3
input.go
3
input.go
@ -44,7 +44,8 @@ func IsKeyPressed(key Key) bool {
|
|||||||
return uiDriver().Input().IsKeyPressed(driver.Key(key))
|
return uiDriver().Input().IsKeyPressed(driver.Key(key))
|
||||||
}
|
}
|
||||||
|
|
||||||
// CursorPosition returns a position of a mouse cursor.
|
// CursorPosition returns a position of a mouse cursor relative to the game screen (window). The cursor position is
|
||||||
|
// 'logical' position and this considers the scale of the screen.
|
||||||
//
|
//
|
||||||
// CursorPosition is concurrent-safe.
|
// CursorPosition is concurrent-safe.
|
||||||
func CursorPosition() (x, y int) {
|
func CursorPosition() (x, y int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user