LWJGL

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [Bug report] Keyboad input not working without a graphical primitive  (Read 2940 times)

Qudus

  • Talks Too Much
  • ***
  • Offline Offline
  • Posts: 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
Logged

Matzon

  • Administrator
  • Demigod
  • *****
  • Offline Offline
  • Posts: 2242

do you have a test case ??

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

Qudus

  • Talks Too Much
  • ***
  • Offline Offline
  • Posts: 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
Logged

Matzon

  • Administrator
  • Demigod
  • *****
  • Offline Offline
  • Posts: 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 ::)

elias

  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 899

It works because we poll the directinput mouse state directly, bypassing the message loop.

 - elias