mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-10 17:04:01 +00:00
Added Keyboard.getEventNanoseconds() and Mouse.getEventNanoseconds()
This commit is contained in:
parent
e28bde351b
commit
4e68c787b3
17 changed files with 166 additions and 115 deletions
|
|
@ -972,7 +972,7 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
/* Callbacks from nUpdate() */
|
||||
private static void handleButtonEvent(long millis, int type, int button, int state) {
|
||||
if (mouse != null)
|
||||
mouse.handleButtonEvent(grab, type, (byte)button);
|
||||
mouse.handleButtonEvent(grab, millis, type, (byte)button);
|
||||
}
|
||||
|
||||
private static void handleKeyEvent(long event_ptr, long millis, int type, int keycode, int state) {
|
||||
|
|
@ -980,9 +980,9 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
keyboard.handleKeyEvent(event_ptr, millis, type, keycode, state);
|
||||
}
|
||||
|
||||
private static void handlePointerMotionEvent(long root_window, int x_root, int y_root, int x, int y, int state) {
|
||||
private static void handlePointerMotionEvent(long millis, long root_window, int x_root, int y_root, int x, int y, int state) {
|
||||
if (mouse != null)
|
||||
mouse.handlePointerMotion(grab, pointer_grabbed, shouldGrab(), root_window, x_root, y_root, x, y);
|
||||
mouse.handlePointerMotion(grab, pointer_grabbed, shouldGrab(), millis, root_window, x_root, y_root, x, y);
|
||||
}
|
||||
|
||||
private static void handleWarpEvent(int x, int y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue