mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Added pointer warping to keep pointer in center of the display
This commit is contained in:
parent
af4368f427
commit
77e86f580c
2 changed files with 41 additions and 7 deletions
|
|
@ -57,6 +57,8 @@ int screen;
|
|||
int current_fullscreen;
|
||||
int current_focused;
|
||||
Window win;
|
||||
int win_width;
|
||||
int win_height;
|
||||
XF86VidModeModeInfo **avail_modes;
|
||||
XVisualInfo * vis_info;
|
||||
|
||||
|
|
@ -122,7 +124,8 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_nCreate(JNIEnv * env, jclass c
|
|||
|
||||
|
||||
|
||||
|
||||
win_width = width;
|
||||
win_height = height;
|
||||
current_fullscreen = fullscreen;
|
||||
current_focused = 0;
|
||||
disp = XOpenDisplay(NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue