LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Orkel on June 15, 2013, 00:43:12

Title: Keyboard.isKeyDown returns an incorrect value
Post by: Orkel on June 15, 2013, 00:43:12
If I have a key down while a modal window(in my case, a JOptionPane window) showed up, Keyboard.isKeyDown(that key) will return true until I press and release that button again.

I have tried to resolve this with Keyboard.destroy() and immediately calling Keyboard.create() but its not helping.

How do I resolve this?

Using Sys.alert solved this problem, but the method is not powerful enough. I need to customize the button names and the pressed button returned(some kind of index).