mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Moved native cursor origin to middle of the window
This commit is contained in:
parent
9c427cd029
commit
43b2d67a71
3 changed files with 68 additions and 70 deletions
|
|
@ -125,8 +125,9 @@ public class Mouse {
|
|||
*
|
||||
* NOTE: The native cursor is not constrained to the window, but
|
||||
* relative events will not be generated if the cursor is outside.
|
||||
* The initial position of the cursor is in the upper left corner of
|
||||
* the window, and the cursor will be moved to this origin when a
|
||||
* The initial position of the cursor is the middle of the window,
|
||||
* that is, {window_width/2, window_height/2}.
|
||||
* The cursor will be moved to this origin when a
|
||||
* native cursor is set and the previous cursor is null.
|
||||
*
|
||||
* @param cursor the native cursor object to bind. May be null.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue