mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
Windows: Use data size constant for input devices instead of hard coded size
This commit is contained in:
parent
4e68c787b3
commit
6650e03ef4
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ final class WindowsKeyboard {
|
|||
throw e;
|
||||
}
|
||||
keyboard.acquire();
|
||||
temp_data_buffer = BufferUtils.createIntBuffer(BUFFER_SIZE*2);
|
||||
temp_data_buffer = BufferUtils.createIntBuffer(BUFFER_SIZE*WindowsDirectInputDevice.DATA_SIZE);
|
||||
keyboard_state = BufferUtils.createByteBuffer(256);
|
||||
unicode_buffer = BufferUtils.createCharBuffer(BUFFER_SIZE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ final class WindowsMouse {
|
|||
this.mouse_button_count = Math.min(enumerator.getButtonCount(), 4);
|
||||
this.has_wheel = enumerator.hasWheel();
|
||||
mouse_state = BufferUtils.createByteBuffer(3*4 + 4);
|
||||
temp_data_buffer = BufferUtils.createIntBuffer(BUFFER_SIZE*2);
|
||||
temp_data_buffer = BufferUtils.createIntBuffer(BUFFER_SIZE*WindowsDirectInputDevice.DATA_SIZE);
|
||||
}
|
||||
|
||||
public boolean hasWheel() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue