mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: update the comment for CursorPosition
CursorPosition should return a mouse cursor position on browsers even in mobiles. Closes #3087
This commit is contained in:
parent
a786f23e28
commit
15dfb02f9f
2
input.go
2
input.go
@ -79,7 +79,7 @@ func KeyName(key Key) string {
|
|||||||
//
|
//
|
||||||
// CursorPosition returns (0, 0) before the main loop on desktops and browsers.
|
// CursorPosition returns (0, 0) before the main loop on desktops and browsers.
|
||||||
//
|
//
|
||||||
// CursorPosition always returns (0, 0) on mobiles.
|
// CursorPosition always returns (0, 0) on mobile native applications.
|
||||||
//
|
//
|
||||||
// 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