mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-10 17:04:01 +00:00
Windows: Ingore DI_POLLEDDEVICE when setting buffer size of a directinput device
This commit is contained in:
parent
ccc6b7ba66
commit
4d6cbb4d1c
2 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ abstract class WindowsDirectInputDevice {
|
|||
|
||||
public void setBufferSize(int buffer_size) throws LWJGLException {
|
||||
int ret = setBufferSize(di_device, buffer_size);
|
||||
if (ret != WindowsDirectInput.DI_OK)
|
||||
if (ret != WindowsDirectInput.DI_OK && ret != WindowsDirectInput.DI_PROPNOEFFECT && ret != WindowsDirectInput.DI_POLLEDDEVICE)
|
||||
throw new LWJGLException("Failed to set buffer size (" + ret + ")");
|
||||
int event_buffer_size = getEventSize()*buffer_size;
|
||||
event_buffer = BufferUtils.createByteBuffer(event_buffer_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue