Hello Guest

[Bug report] Keyboad input not working without a graphical primitive

  • 4 Replies
  • 6453 Views
*

Offline Qudus

  • ***
  • 123
Hi,

There's a bug in the 1.0 release of LWJGL. While Mouse input is working properly Keyboard input (BUFFERED) does not produce any "events" when no graphical primitives are being rendered. From the moment I add the first primitive, the input is working again.

Of course this is low prio, since any game has graph prims Wink.

Marvin

*

Offline Matzon

  • *****
  • 2242
do you have a test case ??

Are you sure you're not talking about the need to call Display.update ?

*

Offline Qudus

  • ***
  • 123
Are you sure you're not talking about the need to call Display.update ?

Exactly this was the problem. Thank you very much. And sorry for the false alarm.

Marvin

*

Offline Matzon

  • *****
  • 2242
np.

The problem is that we don't process input before display.update (unless you manually call poll). Not sure why mouse works then ::)

*

Offline elias

  • *****
  • 899
    • http://oddlabs.com
It works because we poll the directinput mouse state directly, bypassing the message loop.

 - elias