input: Improve CursorPosition document

This commit is contained in:
Hajime Hoshi 2019-04-13 12:46:32 +09:00
parent e6c0c73b9e
commit f262210410

View File

@ -44,7 +44,8 @@ func IsKeyPressed(key Key) bool {
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.
func CursorPosition() (x, y int) {