mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
Implemented variable sized events in preparation of timestamped input events
This commit is contained in:
parent
25a953bbdc
commit
26c6de6363
13 changed files with 117 additions and 129 deletions
|
|
@ -648,7 +648,7 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
}
|
||||
}
|
||||
|
||||
public void readMouse(IntBuffer buffer) {
|
||||
public void readMouse(ByteBuffer buffer) {
|
||||
update();
|
||||
lockAWT();
|
||||
try {
|
||||
|
|
@ -818,7 +818,7 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
}
|
||||
}
|
||||
|
||||
public void readKeyboard(IntBuffer buffer) {
|
||||
public void readKeyboard(ByteBuffer buffer) {
|
||||
update();
|
||||
lockAWT();
|
||||
try {
|
||||
|
|
@ -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, button);
|
||||
mouse.handleButtonEvent(grab, type, (byte)button);
|
||||
}
|
||||
|
||||
private static void handleKeyEvent(long event_ptr, long millis, int type, int keycode, int state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue