[FIXED] Keyboard does not respond on Linux

Started by Wibowit, January 12, 2011, 15:09:46

Previous topic - Next topic

kappa

Have a look at the basic applet example on the wiki. Should be pretty much the same for applications (just replace Applet with JFrame).

_ralts

I've tried some of the code on that page (setIgnoreRepaint and setFocusable) and it still crashes with that error. I think it's a driver issue.

elias4444

Have you verified that the GL context has focus?

Just a thought.  :-\
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

jediTofu

cool story, bro

Momoko_Fan

Funny thing is that over at jME3 we were having this issue for months. Will be interesting to see where this goes ..

kappa

This seems like a serious issue, so many people have reported it, however the problem had only happened to a random few with no clear pattern as to the issue/cause, especially as it was not reproducible by any of the LWJGL devs.

After discussing this issue on irc, our resident genius MatthiasM had the theory that it might be ibus that causes this problem.

Quote from: Momoko_Fan on September 18, 2011, 12:57:42
Funny thing is that over at jME3 we were having this issue for months. Will be interesting to see where this goes ..
Interestingly after some googling, there was a possible solution/cause found on the jMonkeyEngine forum here :)

I reckon the next move should be to try to get ibus to work with LWJGL instead of disabling it. Any idea's on how to proceed or support ibus?

kappa

The page here seems to suggest that only old x applications should need to add the environment variable, could it be that we're using some old (outdated) method in X to read input?

jediTofu

Quote from: kappa on September 18, 2011, 14:18:31
This seems like a serious issue, so many people have reported it, however the problem had only happened to a random few with no clear pattern as to the issue/cause, especially as it was not reproducible by any of the LWJGL devs.

After discussing this issue on irc, our resident genius MatthiasM had the theory that it might be ibus that causes this problem.

Quote from: Momoko_Fan on September 18, 2011, 12:57:42
Funny thing is that over at jME3 we were having this issue for months. Will be interesting to see where this goes ..
Interestingly after some googling, there was a possible solution/cause found on the jMonkeyEngine forum here :)

I reckon the next move should be to try to get ibus to work with LWJGL instead of disabling it. Any idea's on how to proceed or support ibus?


I think you're right.  I was able to reproduce this (but without any errors) by installing iBus.  It's an indicator on my gnome-applets; I installed Japanese on it.  Even with it set to English, LWJGL refuses to get any input at all.  However, my applets get input (which are contained in a Canvas).

Note:  mouse has no problems.
cool story, bro

princec

Aha I came across this with out games too. I solved it with just XMODIFIERS= java .... as my commandline (ie. XMODIFIERS is cleared completely, didn't even use @im=none but whether I'm right or not who knows...).

Cas :)

kappa

A fix for this issue has been applied (should be in next nightly build). If someone suffering from this issue can confirm that it now works it would be nice.

Thanks

_ralts

Quote from: princec on September 18, 2011, 23:47:47
Aha I came across this with out games too. I solved it with just XMODIFIERS= java .... as my commandline (ie. XMODIFIERS is cleared completely, didn't even use @im=none but whether I'm right or not who knows...).

Cas :)

Thanks for that! I completely forgot about that iBus issue.

However, I haven't been able to get resizable windows to work. I'll probably just leave that, as it isn't that important right now.

jediTofu

Quote from: kappa on September 20, 2011, 19:50:58
A fix for this issue has been applied (should be in next nightly build). If someone suffering from this issue can confirm that it now works it would be nice.

Thanks

Works now for me :).
Used the exact same code that didn't work and just replaced with nightly build jar's/so's for compiling/running.
Thanks.
cool story, bro

kappa

Quote from: _ralts on September 21, 2011, 02:43:35
However, I haven't been able to get resizable windows to work. I'll probably just leave that, as it isn't that important right now.
Thats because the resizable window stuff isn't implemented for linux yet (it is for windows and mac).

Quote from: jediTofu on September 21, 2011, 03:24:56
Works now for me :).
Used the exact same code that didn't work and just replaced with nightly build jar's/so's for compiling/running.
Thanks.
ah thats great, thx for testing.