mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
BaseWindow: We are now grabbing the mouse. Doing this because on linux,
you need to grab and move the pointer or else you can scroll away from your full screen program. org_lwjgl_input_Mouse.cpp: When in full screen, the pointer should warp to the corner of the display. This fixes a few issues. Also added a stub for nEnableBuffer, with a fixme message. This function does not seem to be implemented in either the linux or win32 source... but exists in the java Mouse class. The stub keeps programs from crashing. ltmain.sh: Fixed a bug in libtool, where it uses gcc vs c++ for linking librarys built in c++. This fixes a missing symbol issue. configure.in: Made a few small changes.
This commit is contained in:
parent
fe7692179d
commit
0aa1f0d701
6 changed files with 255 additions and 9 deletions
|
|
@ -132,6 +132,7 @@ int grabPointer(void) {
|
|||
int result;
|
||||
int mask = EnterWindowMask | LeaveWindowMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask;
|
||||
if (current_fullscreen) {
|
||||
XWarpPointer(disp, None, win, 0, 0, 0, 0, 0, 0);
|
||||
result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, win, blank_cursor, CurrentTime);
|
||||
XF86VidModeSetViewPort(disp, screen, 0, 0); // make sure we have a centered window
|
||||
} else
|
||||
|
|
@ -329,3 +330,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nPoll
|
|||
if (current_fullscreen)
|
||||
warpPointer();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_input_Mouse
|
||||
* Method: nEnableBuffer
|
||||
* Signature: ()I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nEnableBuffer
|
||||
(JNIEnv * env, jclass clazz) {
|
||||
printf("*** FIXME: nEnableBuffer not implemented!\n*");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue